Public Member Functions | Public Attributes

SGMatrix< T > Class Template Reference


Detailed Description

template<class T>
class shogun::SGMatrix< T >

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.

List of all members.

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

Constructor & Destructor Documentation

SGMatrix (  ) 

default constructor

Definition at line 140 of file DataType.h.

SGMatrix ( T *  m,
index_t  nrows,
index_t  ncols,
bool  free_mat = false 
)

constructor for setting params

Definition at line 143 of file DataType.h.

SGMatrix ( index_t  nrows,
index_t  ncols,
bool  free_mat = false 
)

constructor to create new matrix in memory

Definition at line 147 of file DataType.h.

SGMatrix ( const SGMatrix< T > &  orig  ) 

copy constructor

Definition at line 154 of file DataType.h.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation