DUNE-FEM (unstable)
Default implementation for local matrix classes. More...
#include <dune/fem/operator/common/localmatrix.hh>
Public Types | |
typedef ThisType | LocalMatrixInterfaceType |
type of this interface | |
typedef Traits::LocalMatrixType | LocalMatrixType |
type of local matrix implementation | |
typedef Traits::RangeFieldType | RangeFieldType |
type of range field | |
typedef Traits::LittleBlockType | LittleBlockType |
Public Member Functions | |
void | init (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) |
initialize the local matrix to entities More... | |
void | bind (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) |
initialize the local matrix to entities More... | |
void | unbind () |
clear local matrix from entities More... | |
void | resort () |
resort ordering in global matrix (if possible) More... | |
void | finalize () |
finalize local matrix setup and possibly add values to real matrix More... | |
int | rows () const |
get number of rows within the matrix More... | |
int | columns () const |
get number of columns within the matrix More... | |
const DomainSpaceType & | domainSpace () const |
access to the domain space More... | |
const RangeSpaceType & | rangeSpace () const |
access to the range space More... | |
const DomainBasisFunctionSetType & | domainBasisFunctionSet () const |
access to the base function set within the domain space More... | |
const RangeBasisFunctionSetType & | rangeBasisFunctionSet () const |
access to the base function set within the range space More... | |
template<class DomainLocalFunctionType , class RangeLocalFunctionType > | |
void | multiplyAdd (const DomainLocalFunctionType &lhs, RangeLocalFunctionType &rhs) const |
multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs More... | |
void | clearRow (const int localRow) |
set row to zero values More... | |
void | clearCol (const int localCol) |
ser column entries to zero More... | |
void | add (const int localRow, const int localCol, const RangeFieldType &value) |
add value to matrix entry (row,col) where row and col are local row and local column More... | |
void | set (const int localRow, const int localCol, const RangeFieldType &value) |
set value of matrix entry (row,col) where row and col are local row and local column More... | |
const RangeFieldType | get (const int localRow, const int localCol) const |
get value of matrix entry (row,col) where row and col are local row and local column More... | |
void | scale (const RangeFieldType &scalar) |
scale matrix with scalar value More... | |
void | clear () |
set all entries of local matrix to zero | |
MatrixColumnType | column (const unsigned int col) |
return column object for local matrix which contains axpy methods for convenience More... | |
Detailed Description
class Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >
Default implementation for local matrix classes.
Member Typedef Documentation
◆ LittleBlockType
|
inherited |
type of block (i.e. FieldMatrix for BlockMatrices
Member Function Documentation
◆ add()
|
inlineinherited |
add value to matrix entry (row,col) where row and col are local row and local column
- Parameters
-
[in] localRow local row [in] localCol local column [in] value value to add
References Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::add(), and CHECK_AND_CALL_INTERFACE_IMPLEMENTATION.
Referenced by Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::add().
◆ bind()
|
inline |
initialize the local matrix to entities
- Parameters
-
[in] domainEntity entity within grid of domain space, [in] rangeEntity entity within grid of range space
Referenced by Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::bind(), and Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::init().
◆ clearCol()
|
inline |
ser column entries to zero
- Parameters
-
[in] localCol local column that is set to zero
◆ clearRow()
|
inline |
set row to zero values
- Parameters
-
[in] localRow local row that is set to zero
◆ column()
|
inlineinherited |
return column object for local matrix which contains axpy methods for convenience
- Parameters
-
col local column number
- Returns
- object of type MatrixColumnObject
◆ columns()
|
inline |
get number of columns within the matrix
◆ domainBasisFunctionSet()
|
inline |
access to the base function set within the domain space
◆ domainSpace()
|
inline |
access to the domain space
Referenced by DifferentiableEllipticOperator< JacobianOperator, Model >::assemble().
◆ finalize()
|
inline |
finalize local matrix setup and possibly add values to real matrix
◆ get()
|
inlineinherited |
get value of matrix entry (row,col) where row and col are local row and local column
- Parameters
-
[in] localRow local row [in] localCol local column
- Returns
- value of matrix entry
◆ init()
|
inline |
initialize the local matrix to entities
- Parameters
-
[in] domainEntity entity within grid of domain space, [in] rangeEntity entity within grid of range space
References Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::bind().
◆ multiplyAdd()
|
inline |
multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs
- Parameters
-
[in] lhs left hand side [out] rhs right hand side
◆ rangeBasisFunctionSet()
|
inline |
access to the base function set within the range space
◆ rangeSpace()
|
inline |
access to the range space
◆ resort()
|
inline |
resort ordering in global matrix (if possible)
◆ rows()
|
inline |
get number of rows within the matrix
◆ scale()
|
inlineinherited |
scale matrix with scalar value
- Parameters
-
[in] scalar scalar value that scales the matrix
References CHECK_AND_CALL_INTERFACE_IMPLEMENTATION, and Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::scale().
Referenced by Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::scale().
◆ set()
|
inlineinherited |
set value of matrix entry (row,col) where row and col are local row and local column
- Parameters
-
[in] localRow local row [in] localCol local column [in] value value to set
References CHECK_AND_CALL_INTERFACE_IMPLEMENTATION, and Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::set().
Referenced by Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::set().
◆ unbind()
|
inline |
clear local matrix from entities
Referenced by Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::unbind().
The documentation for this class was generated from the following file:
- dune/fem/operator/common/localmatrix.hh