monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
Go to the documentation of this file. 1 #include "../../../../include/monolish_blas.hpp"
2 #include "../../../internal/monolish_internal.hpp"
9 void matadd_core(
const matrix::CRS<F> &A,
const matrix::CRS<F> &B,
19 internal::vadd(A.get_nnz(), A.val.data(), B.val.data(), C.val.data(),
20 A.get_device_mem_stat());
26 void matsub_core(
const matrix::CRS<F> &A,
const matrix::CRS<F> &B,
36 internal::vsub(A.get_nnz(), A.val.data(), B.val.data(), C.val.data(),
37 A.get_device_mem_stat());
bool is_same_size(const T &x, const U &y)
compare size of vector or 1Dview (same as is_same_structure())
bool is_same_structure(const T A, const U B)
compare matrix structure
bool is_same_device_mem_stat(const T &arg1, const U &arg2)
compare same device memory status
void matsub(const matrix::Dense< double > &A, const matrix::Dense< double > &B, matrix::Dense< double > &C)
Dense matrix subtract: C = A - B.
void matadd(const matrix::Dense< double > &A, const matrix::Dense< double > &B, matrix::Dense< double > &C)
Dense matrix addition: C = A + B.
static Logger & get_instance()
Compressed Row Storage (CRS) format Matrix.