15 #if !defined(KRATOS_CSR_SPMM_UTILITIES_H_INCLUDED)
16 #define KRATOS_CSR_SPMM_UTILITIES_H_INCLUDED
21 #include <amgcl/backend/builtin.hpp>
22 #include <amgcl/adapter/zero_copy.hpp>
42 template<
class TDataType=
double,
class TIndexType=std::
size_t >
48 auto pAamgcl = AmgclCSRConversionUtilities::ConvertToAmgcl<TDataType,TIndexType>(rA);
49 auto pBamgcl = AmgclCSRConversionUtilities::ConvertToAmgcl<TDataType,TIndexType>(rB);
51 auto Camgcl = amgcl::backend::product(*pAamgcl, *pBamgcl);
52 amgcl::backend::sort_rows(*Camgcl);
54 return AmgclCSRConversionUtilities::ConvertToCsrMatrix<TDataType,TIndexType>(*Camgcl);
Definition: amgcl_csr_spmm_utilities.h:35
static CsrMatrix< TDataType, TIndexType >::Pointer SparseMultiply(const CsrMatrix< TDataType, TIndexType > &rA, const CsrMatrix< TDataType, TIndexType > &rB)
Definition: amgcl_csr_spmm_utilities.h:43
This class implements "serial" CSR matrix, including capabilities for FEM assembly.
Definition: csr_matrix.h:60
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21