#include <MatrixFacade.hpp>
|
template<class RowBasis , class ColBasis > |
| MatrixFacade (RowBasis const &rowBasis, ColBasis const &colBasis) |
|
Impl const & | impl () const |
| Return the underlying matrix backend.
|
|
Impl & | impl () |
|
template<class SparsityPattern > |
void | init (SparsityPattern const &pattern) |
| Initialize the matrix for insertion and allocate the non-zero pattern.
|
|
void | init () |
| Initialize the matrix for insertion while keeping the pattern unchanged.
|
|
void | finish () |
| Finish the matrix insertion, e.g. cleanup or final insertion.
|
|
template<class RowIndex , class ColIndex , REQUIRES(Concepts::MultiIndex< RowIndex >) , REQUIRES(Concepts::MultiIndex< ColIndex >) > |
void | insert (RowIndex const &row, ColIndex const &col, typename Impl::value_type const &value) |
| Insert a single value into the matrix (add to existing value)
|
|
template<class RowLocalView , class ColLocalView , class LocalMatrix , REQUIRES(Concepts::LocalView< RowLocalView >) , REQUIRES(Concepts::LocalView< ColLocalView >) > |
void | scatter (RowLocalView const &r, ColLocalView const &c, LocalMatrix const &localMatrix) |
|
std::size_t | nnz () const |
| Number of nonzeros in the matrix.
|
|
template<class T, template< class > class MatrixImpl>
class AMDiS::MatrixFacade< T, MatrixImpl >
Basis implementation of DOFMatrix, i.e. a sparse matrix storing all the assembled Operators indexed with DOF indices. The matrix data is associated to a row and column global basis.
- Template Parameters
-
T | The coefficient type of the matrix |
MatrixImpl | A linear-algebra backend for the matrix storage |
◆ MatrixFacade()
MatrixFacade |
( |
RowBasis const & |
rowBasis, |
|
|
ColBasis const & |
colBasis |
|
) |
| |
|
inline |
Constructor. Forwards the bases to the implementation class and constructs a matrix sparsity pattern.
◆ scatter()
void scatter |
( |
RowLocalView const & |
r, |
|
|
ColLocalView const & |
c, |
|
|
LocalMatrix const & |
localMatrix |
|
) |
| |
|
inline |
Insert a block of values into the sparse matrix (add to existing values) The global matrix indices are determined by the corresponding localviews.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/amdis/checkouts/stable/amdis/linearalgebra/LinearSolverInterface.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/amdis/checkouts/stable/amdis/linearalgebra/MatrixFacade.hpp