51 return matrix_list[index];
57 return matrix_list[index];
63 matrix_list[index] = matrix;
92 "The number of columns (%d) must be multiple of the number "
93 "of components (%d).\n",
96 int32_t new_num_cols = matrix.
num_cols / num_components;
99 for ( int32_t i = 0 ; i < num_components ; ++i )
103 for ( int32_t row = 0 ; row < matrix.
num_rows ; ++row )
105 for ( int32_t col = 0 ; col < new_num_cols ; ++col )
106 new_matrix(row, col) = matrix(row, int64_t(i)*new_num_cols + col);
static SGMatrixList< T > split(SGMatrix< T > matrix, int32_t num_components)
SGMatrix< T > * matrix_list
void set_matrix(index_t index, const SGMatrix< T > matrix)
shogun reference count managed data
SGMatrix< T > operator[](index_t index) const
SGMatrix< T > get_matrix(index_t index) const
all of classes and functions are contained in the shogun namespace
virtual void copy_data(const SGReferencedData &orig)