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()) {
17 if (get_col() != mat.
get_col()) {
24 if (get_device_mem_stat() ==
true) {
25 if (!(internal::vequal(get_nnz(), val.data(), mat.
val.data(),
true))) {
28 }
else if (get_device_mem_stat() ==
false ||
29 compare_cpu_and_device ==
false) {
30 if (!(internal::vequal(get_nnz(), val.data(), mat.
val.data(),
false))) {
39 bool compare_cpu_and_device)
const;
41 bool compare_cpu_and_device)
const;
47 bool ans = equal(mat,
false);
59 bool ans = equal(mat,
false);
75 Logger &logger = Logger::get_instance();
96 Logger &logger = Logger::get_instance();
template bool is_same_size(const matrix::Dense< float > &A, const matrix::Dense< float > &B)
logger class (singleton, for developper class)
bool get_device_mem_stat() const
true: sended, false: not send
size_t get_row() const
get # of row
std::vector< Float > val
Dense format value(size M x N)
bool operator==(const Dense< Float > &mat) const
Comparing matricies (A == mat)
void util_in(const std::string func_name)
bool equal(const Dense< Float > &mat, bool compare_cpu_and_device=false) const
Comparing matricies (A == mat)
size_t get_col() const
get # of col
template bool is_same_structure(const matrix::Dense< float > &A, const matrix::Dense< float > &B)
static Logger & get_instance()
bool operator!=(const Dense< Float > &mat) const
Comparing matricies (A != mat)