21 template<
typename AReal>
22 ROOT::TThreadExecutor TCpuMatrix<AReal>::fPool{};
23 template<
typename AReal>
24 std::vector<AReal> TCpuMatrix<AReal>::fOnes{};
27 template<
typename AReal>
29 : fBuffer(nRows * nCols), fNCols(nCols), fNRows(nRows)
35 template<
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);
48 template<
typename AReal>
52 : fBuffer(buffer), fNCols(n), fNRows(m)
58 template<
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);
73 template<
typename AReal>
76 if (fNRows > fOnes.size()) {
77 fOnes.reserve(fNRows);
78 for (
size_t i = fOnes.size(); i < fNRows; i++) {
TCpuMatrix(size_t nRows, size_t nCols)
Construct matrix and allocate space for its elements.