SVM regression matrix. More...
#include <shark/LinAlg/BlockMatrix2x2.h>
Public Types | |
typedef Matrix::QpFloatType | QpFloatType |
Public Member Functions | |
BlockMatrix2x2 (Matrix *base) | |
QpFloatType | operator() (std::size_t i, std::size_t j) const |
return a single matrix entry More... | |
QpFloatType | entry (std::size_t i, std::size_t j) const |
return a single matrix entry More... | |
void | row (std::size_t i, std::size_t start, std::size_t end, QpFloatType *storage) const |
Computes the i-th row of the kernel matrix. More... | |
template<class M > | |
void | matrix (blas::matrix_expression< M, blas::cpu_tag > &storage) const |
Computes the kernel-matrix. More... | |
void | flipColumnsAndRows (std::size_t i, std::size_t j) |
swap two variables More... | |
std::size_t | size () const |
return the size of the quadratic matrix More... | |
Protected Attributes | |
Matrix * | m_base |
underlying KernelMatrix object More... | |
std::vector< std::size_t > | m_mapping |
coordinate permutation More... | |
SVM regression matrix.
Definition at line 62 of file BlockMatrix2x2.h.
typedef Matrix::QpFloatType shark::BlockMatrix2x2< Matrix >::QpFloatType |
Definition at line 65 of file BlockMatrix2x2.h.
|
inline |
Constructor.
base | underlying matrix M, see class description of BlockMatrix2x2. |
Definition at line 69 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::m_base, shark::BlockMatrix2x2< Matrix >::m_mapping, and shark::BlockMatrix2x2< Matrix >::size().
|
inline |
return a single matrix entry
Definition at line 89 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::m_base, and shark::BlockMatrix2x2< Matrix >::m_mapping.
Referenced by shark::BlockMatrix2x2< Matrix >::matrix(), and shark::BlockMatrix2x2< Matrix >::operator()().
|
inline |
swap two variables
Definition at line 117 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::m_mapping, and shark::swap().
|
inline |
Computes the kernel-matrix.
Definition at line 106 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::entry(), and shark::BlockMatrix2x2< Matrix >::size().
|
inline |
return a single matrix entry
Definition at line 85 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::entry().
|
inline |
Computes the i-th row of the kernel matrix.
The entries start,...,end of the i-th row are computed and stored in storage. There must be enough room for this operation preallocated.
Definition at line 98 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::m_base, and shark::BlockMatrix2x2< Matrix >::m_mapping.
|
inline |
return the size of the quadratic matrix
Definition at line 123 of file BlockMatrix2x2.h.
References shark::BlockMatrix2x2< Matrix >::m_base.
Referenced by shark::BlockMatrix2x2< Matrix >::BlockMatrix2x2(), and shark::BlockMatrix2x2< Matrix >::matrix().
|
protected |
underlying KernelMatrix object
Definition at line 128 of file BlockMatrix2x2.h.
Referenced by shark::BlockMatrix2x2< Matrix >::BlockMatrix2x2(), shark::BlockMatrix2x2< Matrix >::entry(), shark::BlockMatrix2x2< Matrix >::row(), and shark::BlockMatrix2x2< Matrix >::size().
|
protected |
coordinate permutation
Definition at line 131 of file BlockMatrix2x2.h.
Referenced by shark::BlockMatrix2x2< Matrix >::BlockMatrix2x2(), shark::BlockMatrix2x2< Matrix >::entry(), shark::BlockMatrix2x2< Matrix >::flipColumnsAndRows(), and shark::BlockMatrix2x2< Matrix >::row().