00001 /* Author: Andrew Schein -*- c++ -*- */ 00002 00003 /* Compact representation of a collection of classifier instances containing sparse values. */ 00004 00005 #ifndef NPS_IMAT_LOL_H 00006 #define NPS_IMAT_LOL_H 00007 #include "ImatState.h" 00008 #include "lol.h" 00009 00010 /* Instance matrix wraps around a sparse matrix for providing functionality 00011 of a classifier instance. */ 00012 00013 extern const struct nps_InstMatLoL *nps_InstMatLoL; 00014 extern int nps_initInstMatLoL(nps_error_t *); 00015 00016 /* randomize the rows */ 00017 extern void nps_InstMatLolRandomize(struct nps_InstMatLoL *o); 00018 extern int64_t nps_InstMatLol_numRows(struct nps_InstMatLoL *o); 00019 00020 00021 //extern nps_imat_lol_t *nps_imat_lol_new(int64_t init_labs , int64_t init_vals); 00022 //extern void nps_imat_lol_del(nps_imat_lol_t *o); 00023 00024 /* fill with mutable dictionary both fills the _t struct and builds up the dictionary 00025 filename is given for error reporting */ 00026 //extern int nps_InstMatLoL_fillMut( nps_imat_state *s, nps_imat_lol_t **o, nps_error_t *err); 00027 /* fill, but don't alter the dictionary. */ 00028 //extern int nps_InstMatLoL_fillFrz(nps_imat_state *, nps_imat_lol_t **o, nps_error_t *err); 00029 00030 #ifndef NPS_IMAT_KEEP 00031 #include "imat_undef.h" 00032 #endif 00033 #endif