Inherited by SparseMatrix< T, indexT, compressionLevel, columnMajor >, SparseMatrix< T, indexT, 1, columnMajor >, and SparseMatrix< T, indexT, 2, columnMajor >.
Public Member Functions | |
template<typename T > | |
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 |
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.
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 |
|
pure virtual |
Writes the matrix to a file with the given filename.
Implemented in SparseMatrix< T, indexT, 2, columnMajor >, SparseMatrix< T, indexT, compressionLevel, columnMajor >, and SparseMatrix< T, indexT, 1, columnMajor >.
|
pure virtual |
Prints the matrix to the console.
Implemented in SparseMatrix< T, indexT, 2, columnMajor >, SparseMatrix< T, indexT, compressionLevel, columnMajor >, and SparseMatrix< T, indexT, 1, columnMajor >.