IVSparse  v1.0
A sparse matrix compression library.
SparseMatrixBaseabstract

Inherited by SparseMatrix< T, indexT, compressionLevel, columnMajor >, SparseMatrix< T, indexT, 1, columnMajor >, and SparseMatrix< T, indexT, 2, columnMajor >.

Public Member Functions

template<typename T >
coeff (uint32_t row, uint32_t col)
 
uint32_t rows () const
 
uint32_t cols () const
 
uint32_t innerSize () const
 
uint32_t outerSize () const
 
uint32_t nonZeros () const
 
size_t byteSize () const
 
virtual void write (const char *filename)=0
 
virtual void print ()=0
 

Detailed Description

IVSparse Sparse Matrix Base Class

This is the overarching base class for the IVSparse Sparse Matrix Library. It contains methods and variables shared between all compression levels of IVSparse Sparse Matrices and serves to reduce code duplication.

Member Function Documentation

◆ coeff()

T coeff ( uint32_t  row,
uint32_t  col 
)
Returns
The element at the given row and column.

◆ rows()

uint32_t rows ( ) const
Returns
The number of rows in the matrix.

◆ cols()

uint32_t cols ( ) const
Returns
The number of columns in the matrix.

◆ innerSize()

uint32_t innerSize ( ) const
Returns
The inner dimension of the matrix.

◆ outerSize()

uint32_t outerSize ( ) const
Returns
The outer dimension of the matrix.

◆ nonZeros()

uint32_t nonZeros ( ) const
Returns
The number of non-zero elements in the matrix.

◆ byteSize()

size_t byteSize ( ) const
Returns
The size of the matrix in bytes.

◆ write()

virtual void write ( const char *  filename)
pure virtual

◆ print()

virtual void print ( )
pure virtual