35 #include <shogun/lib/config.h> 49 template <
class Matrix>
53 typedef typename Matrix::Scalar
Scalar;
75 SG_SERROR(
"Matrix block is currently not supported for GPU matrices.\n");
104 template <
class Matrix>
108 return Block<Matrix>(matrix, row_begin, col_begin, row_size, col_size);
Generic class Block which wraps a matrix class and contains block specific information, providing a uniform way to deal with matrix blocks for all supported backend matrices.
all of classes and functions are contained in the shogun namespace
Block< Matrix > block(Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size)