22 template<
typename AReal>
24 : fBuffer(nRows * nCols), fNCols(nCols), fNRows(nRows)
30 template<
typename AReal>
35 for (
size_t j = 0; j <
fNCols; j++) {
36 for (
size_t i = 0; i <
fNRows; i++) {
37 (*this)(i,j) =
B(i,j);
43 template<
typename AReal>
53 template<
typename AReal>
58 for (
size_t j = 0; j <
fNCols; j++) {
59 for (
size_t i = 0; i <
fNRows; i++) {
60 B(i,j) = (*this)(i, j);
68 template<
typename AReal>
TCpuBuffer< AFloat > fBuffer
The buffer holding the matrix elements in column-major format.
static std::vector< AFloat > fOnes
Vector filled with ones used for BLAS calls.
TCpuMatrix(size_t nRows, size_t nCols)
Construct matrix and allocate space for its elements.
Abstract ClassifierFactory template that handles arbitrary types.