shogun matrix
default constructor constructor for setting params constructor to create new vector in memory free vector destroy vector idx cache
Definition at line 136 of file DataType.h.
Public Member Functions | |
SGMatrix () | |
SGMatrix (T *m, index_t nrows, index_t ncols, bool free_mat=false) | |
SGMatrix (index_t nrows, index_t ncols, bool free_mat=false) | |
SGMatrix (const SGMatrix &orig) | |
virtual void | free_matrix () |
virtual void | destroy_matrix () |
Public Attributes | |
T * | matrix |
index_t | num_rows |
index_t | num_cols |
bool | do_free |
SGMatrix | ( | ) |
default constructor
Definition at line 140 of file DataType.h.
constructor for setting params
Definition at line 143 of file DataType.h.
constructor to create new matrix in memory
Definition at line 147 of file DataType.h.
copy constructor
Definition at line 154 of file DataType.h.
virtual void destroy_matrix | ( | ) | [virtual] |
destroy matrix
Definition at line 171 of file DataType.h.
virtual void free_matrix | ( | ) | [virtual] |
free matrix
Definition at line 159 of file DataType.h.
bool do_free |
whether matrix needs to be freed
Definition at line 185 of file DataType.h.
T* matrix |
matrix
Definition at line 179 of file DataType.h.
number of columns of matrix
Definition at line 183 of file DataType.h.
number of rows of matrix
Definition at line 181 of file DataType.h.