monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
Go to the documentation of this file. 1 #include "../../../include/common/monolish_dense.hpp"
2 #include "../../../include/common/monolish_logger.hpp"
3 #include "../../../include/common/monolish_matrix.hpp"
4 #include "../../internal/monolish_internal.hpp"
14 if (get_row() != mat.
get_row()) {
18 if (get_col() != mat.
get_col()) {
27 if (get_device_mem_stat() ==
true) {
28 if (!(internal::vequal(get_nnz(), val.data(), mat.
val.data(),
true))) {
32 if (!(internal::vequal(get_nnz(), col_ind.data(), mat.
col_ind.data(),
37 if (!(internal::vequal(get_nnz(), row_ptr.data(), mat.
row_ptr.data(),
42 }
else if (get_device_mem_stat() ==
false ||
43 compare_cpu_and_device ==
false) {
44 if (!(internal::vequal(get_nnz(), val.data(), mat.
val.data(),
false))) {
48 if (!(internal::vequal(get_nnz(), col_ind.data(), mat.
col_ind.data(),
53 if (!(internal::vequal(get_nnz(), row_ptr.data(), mat.
row_ptr.data(),
64 bool compare_cpu_and_device)
const;
66 bool compare_cpu_and_device)
const;
72 bool ans = equal(mat,
false);
84 bool ans = equal(mat,
false);
100 Logger &logger = Logger::get_instance();
124 template <
typename T>
126 Logger &logger = Logger::get_instance();
std::vector< Float > val
CRS format value, which stores values of the non-zero elements (size nnz)
size_t get_hash() const
get index array hash (to compare structure)
logger class (singleton, for developper class)
template bool is_same_structure(const matrix::CRS< float > &A, const matrix::CRS< float > &B)
bool operator!=(const CRS< Float > &mat) const
Comparing matricies (A != mat)
std::vector< int > col_ind
CRS format column index, which stores column numbers of the non-zero elements (size nnz)
bool operator==(const CRS< Float > &mat) const
Comparing matricies (A == mat)
void util_in(const std::string func_name)
size_t get_row() const
get # of row
template bool is_same_size(const matrix::CRS< float > &A, const matrix::CRS< float > &B)
bool get_device_mem_stat() const
true: sended, false: not send
size_t get_col() const
get # of col
bool equal(const CRS< Float > &mat, bool compare_cpu_and_device=false) const
Comparing matricies (A == mat)
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.