36 #ifndef NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_MATRIX_HPP 37 #define NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_MATRIX_HPP 48 #include <boost/call_traits.hpp> 59 template<
typename SparseStorageType>
65 typedef typename SparseStorageType::DataType
DataType;
114 #endif //NEKTAR_LIB_UTILITIES_LINEAR_ALGEBRA_SPARSE_MATRIX_HPP COOMatTypeSharedPtr GetCooStorage()
size_t GetMemoryFootprint() const
IndexType GetColumns() const
Array< OneD, const DataType > ConstDataVectorType
std::shared_ptr< SparseStorageType > SparseStorageSharedPtr
const DataType GetFillInRatio() const
SparseStorageSharedPtr m_sparseStorage
IndexType GetRows() const
SparseStorageType::DataType DataType
Array< OneD, DataType > DataVectorType
void Multiply(const DataVectorType &in, DataVectorType &out)
SparseStorageType::const_iterator begin() const
unsigned long GetMulCallsCounter() const
boost::call_traits< DataType >::const_reference operator()(const IndexType row, const IndexType column) const
#define LIB_UTILITIES_EXPORT
void writeBlockSparsityPatternTo(std::ostream &out, 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...
SparseStorageType::const_iterator end() const
const DataType GetAvgRowDensity() const
NekSparseMatrix(const SparseStorageSharedPtr &sparseStoragePtr)
IndexType GetNumNonZeroEntries() const
void writeSparsityPatternTo(std::ostream &out, IndexType blockSize=64)
unsigned long m_mulCallsCounter
std::shared_ptr< COOMatType > COOMatTypeSharedPtr
1D Array of constant elements with garbage collection and bounds checking.
SparseStorageType StorageType