50 return matrix_list[index];
56 return matrix_list[index];
62 matrix_list[index] = matrix;
91 "The number of columns (%d) must be multiple of the number "
92 "of components (%d).\n",
95 int32_t new_num_cols = matrix.
num_cols / num_components;
98 for ( int32_t i = 0 ; i < num_components ; ++i )
102 for ( int32_t row = 0 ; row < matrix.
num_rows ; ++row )
104 for ( int32_t col = 0 ; col < new_num_cols ; ++col )
105 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)