|
SHOGUN
v2.0.0
|
shogun matrix list
Definition at line 21 of file SGMatrixList.h.

Public Member Functions | |
| SGMatrixList () | |
| SGMatrixList (SGMatrix< T > *ml, int32_t nmats, bool ref_counting=true) | |
| SGMatrixList (int32_t nmats, bool ref_counting=true) | |
| SGMatrixList (SGMatrixList const &orig) | |
| virtual | ~SGMatrixList () |
| SGMatrix< T > & | get_matrix (index_t index) const |
| SGMatrix< T > & | operator[] (index_t index) const |
| int32_t | ref_count () |
Static Public Member Functions | |
| static SGMatrixList< T > | split (SGMatrix< T > matrix, int32_t num_components) |
Public Attributes | |
| SGMatrix< T > * | matrix_list |
| int32_t | num_matrices |
Protected Member Functions | |
| virtual void | copy_data (SGReferencedData const &orig) |
| virtual void | init_data () |
| virtual void | free_data () |
| void | copy_refcount (const SGReferencedData &orig) |
| int32_t | ref () |
| int32_t | unref () |
| SGMatrixList | ( | ) |
default constructor
Definition at line 16 of file SGMatrixList.cpp.
| SGMatrixList | ( | SGMatrix< T > * | ml, |
| int32_t | nmats, | ||
| bool | ref_counting = true |
||
| ) |
constructor for setting parameters
Definition at line 22 of file SGMatrixList.cpp.
| SGMatrixList | ( | int32_t | nmats, |
| bool | ref_counting = true |
||
| ) |
constructor to create a new matrix list in memory
Definition at line 28 of file SGMatrixList.cpp.
| SGMatrixList | ( | SGMatrixList< T > const & | orig | ) |
copy constructor
Definition at line 38 of file SGMatrixList.cpp.
|
virtual |
destructor
Definition at line 44 of file SGMatrixList.cpp.
|
protectedvirtual |
|
protectedinherited |
copy refcount
Definition at line 102 of file SGReferencedData.h.
|
protectedvirtual |
get a matrix of the list
| index | matrix index, index must be less than num_matrices although no check is performed in the method |
Definition at line 46 of file SGMatrixList.h.
|
protectedvirtual |
operator overload to get a matrix for read & write access
| index | matrix index, index must be less than num_matrices although no check is performed in the method |
Definition at line 58 of file SGMatrixList.h.
|
protectedinherited |
increase reference counter
Definition at line 111 of file SGReferencedData.h.
|
inherited |
|
static |
divide the matrix into a list of matrices. Each of the new matrices has the same number of rows as the original so the splits to the original matrix are done column-wise.
| matrix | matrix to split |
| num_components | number of new matrices |
Definition at line 87 of file SGMatrixList.cpp.
|
protectedinherited |
decrement reference counter and deallocate object if refcount is zero before or after decrementing it
Definition at line 136 of file SGReferencedData.h.
| SGMatrix<T>* matrix_list |
matrix list
Definition at line 91 of file SGMatrixList.h.
| int32_t num_matrices |
number of matrices of matrix list
Definition at line 94 of file SGMatrixList.h.