36 #ifndef NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_DIAG_BLK_MATRIX_HPP 37 #define NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_DIAG_BLK_MATRIX_HPP 48 #include <boost/call_traits.hpp> 60 template<
typename SparseStorageType>
66 typedef typename SparseStorageType::DataType
DataType;
137 #endif //NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_DIAG_BLK_MATRIX_HPP IndexType GetNumberOfMatrixBlocks() const
COOMatTypeSharedPtr GetCooStorage()
size_t GetMemoryFootprint()
SparseStorageSharedPtrVector m_submatrix
boost::call_traits< DataType >::const_reference operator()(const IndexType row, const IndexType column) const
void MultiplySubMatrix(const IndexType blockNum, DataType *in, DataType *out)
DataType GetAvgRowDensity()
unsigned long m_mulCallsCounter
#define LIB_UTILITIES_EXPORT
SparseStorageType::DataType DataType
Array< OneD, DataType > DataVectorType
void writeSubmatrixBlockSparsityPatternTo(std::ostream &out, const IndexType subMatrixIdx, const IndexType blk_row=0, const IndexType blk_col=0, IndexType blockSize=64)
Complementary routine to the previous. It generates exact non-zero pattern of a given block matrix en...
DataType GetFillInRatio() const
void writeBlockSparsityPatternTo(std::ostream &out, const IndexType blk_row=0, const IndexType blk_col=0, IndexType blockSize=64)
void Multiply(const DataVectorType &in, DataVectorType &out)
IndexType GetRows() const
std::shared_ptr< COOMatType > COOMatTypeSharedPtr
void writeSparsityPatternTo(std::ostream &out, IndexType blockSize=64)
std::shared_ptr< SparseStorageType > SparseStorageSharedPtr
unsigned long GetMulCallsCounter() const
IndexType GetNumNonZeroEntries()
void writeSubmatrixSparsityPatternTo(std::ostream &out, const IndexType subMatrixIdx, IndexType blockSize=64)
Array< OneD, SparseStorageSharedPtr > SparseStorageSharedPtrVector
Array< OneD, const DataType > ConstDataVectorType
IndexType GetColumns() const
SparseStorageType StorageType
1D Array of constant elements with garbage collection and bounds checking.
~NekSparseDiagBlkMatrix()
NekSparseDiagBlkMatrix(const SparseStorageSharedPtrVector &sparseStoragePtrVector)