[udf-dlm-develop] udf-dlm and matrix
Brought to you by:
esm
From: Joerg-Micha J. <jm...@Or...> - 2000-01-11 19:48:03
|
This is an excerpt from an exchange about "matrix" implementation in udf-dlm. This message and the response to it (next message) will show a possible implementaiton path. Jörg-Micha ------------------------------------------------------------------------- (...) I haven't read through udf.c completely, but the way I understand this is supposed to work is that after the file is open and the structure in place, you just make consecutive calls to read_drec until you are done reading what you want to read. To make "matrix" work this needs two things: set up the correct structure, and read in *all* data. If you read the VIDF/PIDF, you already know a matrix is coming - but you don't know it's size. The first read_drec will get you MCol>0, then you know what your loop needs to be : for (i = 1; i < MCol; i++) To add the loop is the easy part. Now, what about the structure? You know only *after* the first read_drec, how big the matrix is going to be. Will this be easy to implement in the code?? jmj +-------------------------------------------------------------------------+ Jörg-Micha Jahn, Ph.D. Space Science Department Phone: (210) 522-2491 Southwest Research Institute FAX: (210) 520-9935 6220 Culebra Road E-mail: jm...@sw... San Antonio, TX 78238-5166, USA +-------------------------------------------------------------------------+ |