monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
Go to the documentation of this file. 1 #include "../../../include/common/monolish_common.hpp"
2 #include "../../../include/common/monolish_dense.hpp"
3 #include "../../../include/common/monolish_logger.hpp"
4 #include "../../../include/common/monolish_matrix.hpp"
5 #include "../../internal/monolish_internal.hpp"
21 internal::vcopy(mat.
row_ptr.size(), mat.
row_ptr.data(), row_ptr.data(),
23 internal::vcopy(mat.
col_ind.size(), mat.
col_ind.data(), col_ind.data(),
25 internal::vcopy(mat.
val.size(), mat.
val.data(), val.data(),
true);
28 internal::vcopy(mat.
row_ptr.size(), mat.
row_ptr.data(), row_ptr.data(),
30 internal::vcopy(mat.
col_ind.size(), mat.
col_ind.data(), col_ind.data(),
32 internal::vcopy(mat.
val.size(), mat.
val.data(), val.data(),
false);
42 const std::vector<int> &rowptr,
43 const std::vector<int> &colind,
44 const std::vector<T> &value) {
57 const std::vector<int> &rowptr,
58 const std::vector<int> &colind,
59 const std::vector<double> &value);
61 const std::vector<int> &rowptr,
62 const std::vector<int> &colind,
63 const std::vector<float> &value);
bool is_same_size(const T &x, const U &y)
compare size of vector or 1Dview (same as is_same_structure())
std::vector< Float > val
CRS format value, which stores values of the non-zero elements (size nnz)
void operator=(const CRS< Float > &mat)
matrix copy
bool is_same_structure(const T A, const U B)
compare matrix structure
logger class (singleton, for developper class)
std::vector< int > col_ind
CRS format column index, which stores column numbers of the non-zero elements (size nnz)
bool is_same_device_mem_stat(const T &arg1, const U &arg2)
compare same device memory status
void util_in(const std::string func_name)
bool get_device_mem_stat() const
true: sended, false: not send
void set_ptr(const size_t M, const size_t N, const std::vector< int > &rowptr, const std::vector< int > &colind, const std::vector< Float > &value)
Set CRS array from std::vector.
std::vector< int > row_ptr
CRS format row pointer, which stores the starting points of the rows of the arrays value and col_ind ...
static Logger & get_instance()
Compressed Row Storage (CRS) format Matrix.