The basic container that stores a base matrix. More...
#include <MatrixBackend.hpp>
Public Types | |
| using | BaseMatrix = mtl::compressed2D< T > |
| The matrix type of the underlying base matrix. | |
| using | value_type = typename BaseMatrix::value_type |
| The type of the elements of the DOFMatrix. | |
| using | size_type = typename BaseMatrix::size_type |
| The index/size - type. | |
Public Member Functions | |
| template<class Basis > | |
| MTLSparseMatrix (Basis const &, Basis const &) | |
| Constructor. Constructs new BaseMatrix. | |
| BaseMatrix & | matrix () |
| Return a reference to the data-matrix matrix. | |
| BaseMatrix const & | matrix () const |
| Return a reference to the data-matrix matrix. | |
| void | init (Pattern const &pattern) |
| void | init () |
| void | finish () |
| void | insert (size_type r, size_type c, value_type const &value) |
Returns an update-proxy of the inserter, to insert/update a value at position (r, c) in the matrix. Need an insertionMode inserter, that can be created by init and must be closed by finish after insertion. | |
| template<class Ind , class LocalMat > | |
| void | scatter (Ind const &idx, LocalMat const &mat) |
| template<class RowInd , class ColInd , class LocalMat > | |
| void | scatter (RowInd const &rows, ColInd const &cols, LocalMat const &mat) |
| std::size_t | nnz () const |
| Return the number of nonzeros in the matrix. | |
| SymmetryStructure | symmetry () const |
| Symmetry of the matrix entries. | |
The basic container that stores a base matrix.
|
inline |
Delete inserter -> finish insertion. Must be called in order to fill the final construction of the matrix.
|
inline |
Create inserter. Assumes that no inserter is currently active on this matrix. Resizes the matrix according to the provided pattern.
References SlotSize::cols(), MTLSparseMatrix< T >::nnz(), SlotSize::rows(), SlotSize::rowSizeEstimate(), SlotSize::symmetry(), and AMDiS::test_exit().
|
inline |
Create inserter. Assumes that no inserter is currently active on this matrix. Does not change matrix dimensions.
References MTLSparseMatrix< T >::nnz(), and AMDiS::test_exit().