DUNE-FEM (unstable)

Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix > Class Template Reference

SparseRowMatrixObject. More...

#include <dune/fem/operator/matrix/spmatrix.hh>

Classes

class  LocalMatrix
 LocalMatrix. More...
 
struct  LocalMatrixTraits
 LocalMatrixTraits. More...
 

Public Member Functions

 SparseRowMatrixObject (const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace, const SolverParameter &param=SolverParameter())
 construct matrix object
 
const DomainSpaceType & domainSpace () const
 get domain space (i.e. space that builds the rows)
 
const RangeSpaceType & rangeSpace () const
 get range space (i.e. space that builds the columns)
 
MatrixType & exportMatrix () const
 get reference to storage object
 
ObjectType * newObject () const
 interface method from LocalMatrixFactory
 
LocalMatrixType localMatrix (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) const
 
LocalMatrixType localMatrix () const
 
LocalColumnObjectType localColumn (const DomainEntityType &domainEntity) const
 get local column
 
void clear ()
 clear matrix
 
void compress ()
 compress matrix to a real CRS format
 
template<class Stencil >
void reserve (const Stencil &stencil, bool verbose=false)
 reserve memory
 
template<class DomainFunction , class RangeFunction >
void apply (const DomainFunction &arg, RangeFunction &dest) const
 apply matrix to discrete function
 
template<class DiscreteFunctionType >
void extractDiagonal (DiscreteFunctionType &diag) const
 
void resort ()
 resort row numbering in matrix to have ascending numbering
 

Protected Member Functions

MatrixType & matrix () const
 get reference to storage object, for internal use
 

Detailed Description

template<class DomainSpace, class RangeSpace, class Matrix = SparseRowMatrix< typename DomainSpace::RangeFieldType >>
class Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >

SparseRowMatrixObject.

Member Function Documentation

◆ extractDiagonal()

template<class DomainSpace , class RangeSpace , class Matrix = SparseRowMatrix< typename DomainSpace::RangeFieldType >>
template<class DiscreteFunctionType >
void Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::extractDiagonal ( DiscreteFunctionType &  diag) const
inline

extract diagonal entries from matrix into discrete function this only works for square matrices

References Dune::Fem::DiscreteFunctionDefault< Impl >::dend().

◆ localMatrix() [1/2]

template<class DomainSpace , class RangeSpace , class Matrix = SparseRowMatrix< typename DomainSpace::RangeFieldType >>
LocalMatrixType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::localMatrix ( ) const
inline
Deprecated:
Use TemporaryLocalMatrix in combination with {add,set,get}LocalMatrix on matrix object return local matrix object

◆ localMatrix() [2/2]

template<class DomainSpace , class RangeSpace , class Matrix = SparseRowMatrix< typename DomainSpace::RangeFieldType >>
LocalMatrixType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::localMatrix ( const DomainEntityType &  domainEntity,
const RangeEntityType &  rangeEntity 
) const
inline
Deprecated:
Use TemporaryLocalMatrix in combination with {add,set,get}LocalMatrix on matrix object return local matrix object

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Jun 19, 23:17, 2026)