template class SGSparseMatrix
Definition at line 394 of file DataType.h.
Public Member Functions | |
| SGSparseMatrix () | |
| SGSparseMatrix (SGSparseVector< T > *vecs, index_t num_feat, index_t num_vec, bool free_m=false) | |
| SGSparseMatrix (index_t num_vec, index_t num_feat, bool free_m=false) | |
| SGSparseMatrix (const SGSparseMatrix &orig) | |
| void | free_matrix () |
| void | own_matrix () |
| void | destroy_matrix () |
Public Attributes | |
| int32_t | num_vectors |
| total number of vectors | |
| int32_t | num_features |
| total number of features | |
| SGSparseVector< T > * | sparse_matrix |
| array of sparse vectors of size num_vectors | |
| bool | do_free |
| SGSparseMatrix | ( | ) |
default constructor
Definition at line 398 of file DataType.h.
| SGSparseMatrix | ( | SGSparseVector< T > * | vecs, | |
| index_t | num_feat, | |||
| index_t | num_vec, | |||
| bool | free_m = false | |||
| ) |
constructor for setting params
Definition at line 404 of file DataType.h.
| SGSparseMatrix | ( | index_t | num_vec, | |
| index_t | num_feat, | |||
| bool | free_m = false | |||
| ) |
constructor to create new matrix in memory
Definition at line 410 of file DataType.h.
| SGSparseMatrix | ( | const SGSparseMatrix< T > & | orig | ) |
copy constructor
Definition at line 417 of file DataType.h.
| void destroy_matrix | ( | ) |
destroy matrix
Definition at line 443 of file DataType.h.
| void free_matrix | ( | ) |
free matrix
Definition at line 422 of file DataType.h.
| void own_matrix | ( | ) |
own matrix
Definition at line 434 of file DataType.h.
| bool do_free |
whether vector needs to be freed
Definition at line 460 of file DataType.h.
| int32_t num_features |
total number of features
Definition at line 454 of file DataType.h.
| int32_t num_vectors |
total number of vectors
Definition at line 451 of file DataType.h.
array of sparse vectors of size num_vectors
Definition at line 457 of file DataType.h.