![]() |
linearAlgebraSolverLib
|
A matrix class with overloaded operators to facilitate arithmetic matrix operations. More...
#include <sparseMatrixCSR.hpp>
Overloaded operators | |
| LINEARALGEBRALIB_EXPORT Vector | operator* (const Vector &rhs) |
| LINEARALGEBRALIB_EXPORT friend SparseMatrixCSR | operator* (const double &scaleFactor, const SparseMatrixCSR &matrix) |
| LINEARALGEBRALIB_EXPORT friend std::ostream & | operator<< (std::ostream &os, const SparseMatrixCSR &rhs) |
A matrix class with overloaded operators to facilitate arithmetic matrix operations.
This class implements a 2D sparse matrix using the Compressed Sparse Row (CSR) format. The CSR format, as excellently discussed by Matt Eding, is used to store only non-zero elements in the matrix which reduces memory consumption significantly (and, in fact, makes large CFD calculations possible in the first place). To see how to use this class, refer to the Creating a matrix section in the documentation.