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>
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);
72template <
typename AReal>
75 for (
size_t j = 0; j < fNCols; j++) {
76 for (
size_t i = 0; i < fNRows; i++) {
77 (*this)(i, j) = B(i, j);
84template<
typename AReal>
87 if (fNRows > fOnes.size()) {
88 fOnes.reserve(fNRows);
89 size_t ifirst = fOnes.size();
90 for (
size_t i = ifirst; i < fNRows; i++) {
97template<
typename AReal>
100 if (
n > fOnes.size()) {
102 size_t ifirst = fOnes.size();
103 for (
size_t i = ifirst; i <
n; i++) {
104 fOnes.push_back(1.0);
static void InitializeOneVector(size_t n)
TCpuMatrix< AFloat > & operator=(const TMatrixT< AFloat > &)
copy from a TMAtrixT .
create variable transformations