00001 /* Author: Andrew I. Schein -*- c++ -*- */ 00002 00003 /* thoughts: do away with darray.h. Instead... find a way to use .c 00004 make this an somewhat opaque type. 00005 */ 00006 00007 #ifndef NPS_LOL_H 00008 #define NPS_LOL_H 00009 #include <stdlib.h> 00010 #include <stdint.h> 00011 #include "../num/s8f8_svec_array.h" 00012 00013 00014 // /* Dynamic array of svecs (LOL) matrix. */ 00015 00016 typedef struct { 00017 int64_t nCols; 00018 s8f8_svec_array_t *row_list; 00019 } nps_lol_t; 00020 00021 /* allocate space for struct. Everything set to zero. */ 00022 extern nps_lol_t *nps_lol_alloc(); 00023 extern void nps_lol_free(nps_lol_t *); 00024 extern nps_lol_t *nps_lol_clone(nps_lol_t *,nps_error_t *); 00025 00026 00027 #endif 00028