22template<
typename AReal>
24 : fBuffer(nRows * nCols), fNCols(nCols), fNRows(nRows)
27 for (
size_t j = 0; j <
fNCols; j++) {
28 for (
size_t i = 0; i <
fNRows; i++) {
35template<
typename AReal>
37 : fBuffer(
B.GetNoElements()), fNCols(
B.GetNcols()), fNRows(
B.GetNrows())
40 for (
size_t j = 0; j <
fNCols; j++) {
41 for (
size_t i = 0; i <
fNRows; i++) {
42 (*this)(i,j) =
B(i,j);
48template<
typename AReal>
52 : fBuffer(buffer), fNCols(
n), fNRows(
m)
58template<
typename AReal>
63 for (
size_t j = 0; j < fNCols; j++) {
64 for (
size_t i = 0; i < fNRows; i++) {
65 B(i,j) = (*this)(i, j);
73template<
typename AReal>
76 if (fNRows > fOnes.size()) {
77 fOnes.reserve(fNRows);
78 size_t ifirst = fOnes.size();
79 for (
size_t i = ifirst; i < fNRows; i++) {
86template<
typename AReal>
89 if (
n > fOnes.size()) {
91 size_t ifirst = fOnes.size();
92 for (
size_t i = ifirst; i <
n; i++) {
TCpuMatrix(size_t nRows, size_t nCols)
Construct matrix and allocate space for its elements.
static void InitializeOneVector(size_t n)
create variable transformations