AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
EigenSparseMatrix< T, Orientation > Class Template Reference

The basic container that stores a base matrix and a corresponding row/column feSpace. More...

#include <MatrixBackend.hpp>

Public Types

using BaseMatrix = Eigen::SparseMatrix< T, Orientation >
 The matrix type of the underlying base matrix.
 
using value_type = typename BaseMatrix::Scalar
 The type of the elements of the DOFMatrix.
 
using size_type = typename BaseMatrix::Index
 The index/size - type.
 

Public Member Functions

template<class Basis >
 EigenSparseMatrix (Basis const &, Basis const &)
 Constructor. Constructs new BaseMatrix.
 
BaseMatrixmatrix ()
 Return a reference to the data-matrix matrix.
 
BaseMatrix const & matrix () const
 Return a reference to the data-matrix matrix.
 
void insert (size_type r, size_type c, value_type const &value)
 Returns an update-proxy of the inserter, to inserte/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)
 
template<class Pattern >
void init (Pattern const &pattern)
 Resize the matrix according to the pattern provided and set all entries to zero.
 
void init ()
 Set all matrix entries to zero while keeping the size unchanged.
 
void finish ()
 Set the matrix entries from the triplet list and compress the matrix afterwards.
 
std::size_t nnz () const
 Return the number of nonzeros in the matrix.
 

Detailed Description

template<class T, int Orientation = Eigen::RowMajor>
class AMDiS::EigenSparseMatrix< T, Orientation >

The basic container that stores a base matrix and a corresponding row/column feSpace.


The documentation for this class was generated from the following file: