next up previous contents index
Next: Related file (external) types Up: Lists of n-tuple reals Previous: Functions Summary   Contents   Index


The structures Dlist and Dlists

As for curves, Dlist and Dlists are the counterpart of Flist and Flists : the only difference between them is that values are of type double instead of float. Since you can easily imagine how it works, we will not document the functions associated to Dlist and Dlists. Just change the letter f to d.

typedef struct dlist {

  int size;          /* size (number of elements) */
  int max_size;      /* currently allocated size (number of ELEMENTS) */
  int dim;           /* dimension (number of components per element) */

  double *values;    /* values = size * dim array
                          nth element = values[n*dim+i], i=0..dim-1 */

  int data_size;     /* size of data[] in bytes */
  void* data;        /* User defined field (saved). A pointer to something */

} *Dlist;

typedef struct dlists {

  char cmt[mw_cmtsize];     /* Comments */
  char name[mw_namesize];   /* Name */

  int size;          /* size (number of elements) */
  int max_size;      /* currently allocated size (number of ELEMENTS) */

  Dlist *list;       /* array of Dlist */

  int data_size;     /* size of data[] in bytes */
  void* data;        /* User defined field (saved). A pointer to something */

} *Dlists;



mw 2004-05-05