37#ifndef NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_DIAG_BLK_MATRIX_HPP
38#define NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_DIAG_BLK_MATRIX_HPP
48#include <boost/call_traits.hpp>
63 typedef typename SparseStorageType::DataType
DataType;
112 std::ostream &out,
const IndexType subMatrixIdx,
115 std::ostream &out,
const IndexType blk_row = 0,
118 std::ostream &out,
const IndexType subMatrixIdx,
#define LIB_UTILITIES_EXPORT
1D Array of constant elements with garbage collection and bounds checking.
Array< OneD, SparseStorageSharedPtr > SparseStorageSharedPtrVector
SparseStorageType::DataType DataType
IndexType GetRows() const
COOMatTypeSharedPtr GetCooStorage()
IndexType GetNumberOfMatrixBlocks() const
DataType GetAvgRowDensity()
std::shared_ptr< SparseStorageType > SparseStorageSharedPtr
Array< OneD, const DataType > ConstDataVectorType
void MultiplySubMatrix(const IndexType blockNum, DataType *in, DataType *out)
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...
IndexType GetColumns() const
size_t GetMemoryFootprint()
unsigned long GetMulCallsCounter() const
Array< OneD, DataType > DataVectorType
~NekSparseDiagBlkMatrix()
void writeSubmatrixSparsityPatternTo(std::ostream &out, const IndexType subMatrixIdx, IndexType blockSize=64)
void writeSparsityPatternTo(std::ostream &out, IndexType blockSize=64)
unsigned long m_mulCallsCounter
DataType GetFillInRatio() const
void Multiply(const DataVectorType &in, DataVectorType &out)
SparseStorageSharedPtrVector m_submatrix
void writeBlockSparsityPatternTo(std::ostream &out, const IndexType blk_row=0, const IndexType blk_col=0, IndexType blockSize=64)
SparseStorageType StorageType
IndexType GetNumNonZeroEntries()
NekSparseDiagBlkMatrix(const SparseStorageSharedPtrVector &sparseStoragePtrVector)
boost::call_traits< DataType >::const_reference operator()(const IndexType row, const IndexType column) const
std::shared_ptr< COOMatType > COOMatTypeSharedPtr