SHOGUN
4.0.0
|
Namespaces | |
implementation | |
Classes | |
struct | Block |
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. More... | |
Functions | |
template<class Matrix > | |
Block< Matrix > | block (Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size) |
template<Backend backend = linalg_traits<Core>::backend, class Matrix > | |
void | add (Matrix A, Matrix B, Matrix C, typename Matrix::Scalar alpha=1.0, typename Matrix::Scalar beta=1.0) |
template<Backend backend = linalg_traits<Redux>::backend, class Vector > | |
Vector::Scalar | dot (Vector a, Vector b) |
template<Backend backend = linalg_traits<Redux>::backend, class Matrix > | |
Matrix::Scalar | max (Matrix m) |
template<Backend backend = linalg_traits<Redux>::backend, class Vector > | |
Vector::Scalar | vector_sum (Vector a) |
void shogun::linalg::add | ( | Matrix | A, |
Matrix | B, | ||
Matrix | C, | ||
typename Matrix::Scalar | alpha = 1.0 , |
||
typename Matrix::Scalar | beta = 1.0 |
||
) |
Block<Matrix> shogun::linalg::block | ( | Matrix | matrix, |
index_t | row_begin, | ||
index_t | col_begin, | ||
index_t | row_size, | ||
index_t | col_size | ||
) |
Method that returns a block object. Suited for Eigen3/SGMatrix
matrix | the matrix on which the block is defined |
row_begin | the row index at which the block starts |
col_begin | the col index at which the block starts |
row_size | the number of rows in the block |
col_size | the number of cols in the block |
Vector::Scalar shogun::linalg::dot | ( | Vector | a, |
Vector | b | ||
) |
Matrix::Scalar shogun::linalg::max | ( | Matrix | m | ) |