1 #include "../../include/common/monolish_logger.hpp"
2 #include "../../include/common/monolish_matrix.hpp"
3 #include "../../include/common/monolish_vector.hpp"
4 #include "../../include/monolish_blas.hpp"
5 #include "../internal/monolish_internal.hpp"
23 matvec_init_flag =
false;
24 rmatvec_init_flag =
false;
32 const size_t M,
const size_t N,
40 matvec_init_flag =
true;
41 rmatvec_init_flag =
false;
46 const size_t M,
const size_t N,
49 const size_t M,
const size_t N,
54 const size_t M,
const size_t N,
63 matvec_init_flag =
true;
65 rmatvec_init_flag =
true;
70 const size_t M,
const size_t N,
71 const std::function<vector<double>(
const vector<double> &)> &MATVEC,
72 const std::function<vector<double>(
const vector<double> &)> &RMATVEC);
74 const size_t M,
const size_t N,
75 const std::function<vector<float>(
const vector<float> &)> &MATVEC,
76 const std::function<vector<float>(
const vector<float> &)> &RMATVEC);
84 rowN = linearoperator.get_row();
85 colN = linearoperator.get_col();
87 gpu_status = linearoperator.get_device_mem_stat();
89 matvec = linearoperator.get_matvec();
90 matvec_init_flag = linearoperator.get_matvec_init_flag();
92 rmatvec = linearoperator.get_rmatvec();
93 rmatvec_init_flag = linearoperator.get_rmatvec_init_flag();
97 const LinearOperator<double> &linearoperator);
99 const LinearOperator<float> &linearoperator);
101 template <
typename T>
105 matvec_init_flag =
true;
113 template <
typename T>
117 rmatvec_init_flag =
true;