dune-fem
2.4.1-rc
|
A local matrix with a small array as storage. More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/common/temporarylocalmatrix.hh>
Public Types | |
typedef DomainSpaceImp | DomainSpaceType |
typedef RangeSpaceImp | RangeSpaceType |
typedef TemporaryLocalMatrixTraits< DomainSpaceType, RangeSpaceType > | Traits |
typedef Traits::DomainFieldType | DomainFieldType |
typedef Traits::RangeFieldType | RangeFieldType |
typedef BaseType::DomainBasisFunctionSetType | DomainBasisFunctionSetType |
typedef BaseType::RangeBasisFunctionSetType | RangeBasisFunctionSetType |
typedef BaseType::DomainEntityType | DomainEntityType |
typedef BaseType::RangeEntityType | RangeEntityType |
typedef ThisType | LocalMatrixInterfaceType |
type of this interface More... | |
typedef Traits::LocalMatrixType | LocalMatrixType |
type of local matrix implementation More... | |
typedef Traits::LittleBlockType | LittleBlockType |
typedef MatrixColumnObject< Traits > | MatrixColumnType |
Public Member Functions | |
TemporaryLocalMatrix (const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace) | |
template<class DomainEntityType , class RangeEntityType > | |
TemporaryLocalMatrix (const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace, const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) | |
template<class DomainEntityType , class RangeEntityType > | |
void | init (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) |
initialize the local matrix to entities 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 |
void | clear () |
set all entries of local matrix to zero More... | |
void | clearRow (const int localRow) |
set row to zero values 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... | |
const DomainEntityType & | domainEntity () const |
const RangeEntityType & | rangeEntity () const |
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 | clearCol (const int localCol) |
ser column entries to zero More... | |
void | scale (const RangeFieldType &scalar) |
scale matrix with scalar value More... | |
MatrixColumnType | column (const unsigned int col) |
return column object for local matrix which contains axpy methods for convenience More... | |
Protected Member Functions | |
const TemporaryLocalMatrixTraits< DomainSpaceImp, RangeSpaceImp >::LocalMatrixType & | asImp () const |
TemporaryLocalMatrixTraits< DomainSpaceImp, RangeSpaceImp >::LocalMatrixType & | asImp () |
Static Protected Member Functions | |
static const TemporaryLocalMatrixTraits< DomainSpaceImp, RangeSpaceImp >::LocalMatrixType & | asImp (const ThisType &other) |
static TemporaryLocalMatrixTraits< DomainSpaceImp, RangeSpaceImp >::LocalMatrixType & | asImp (ThisType &other) |
Protected Attributes | |
Fem::DynamicArray< RangeFieldType > | fields_ |
const DomainSpaceType & | domainSpace_ |
const RangeSpaceType & | rangeSpace_ |
DomainBasisFunctionSetType | domainBaseSet_ |
RangeBasisFunctionSetType | rangeBaseSet_ |
A local matrix with a small array as storage.
A TemporaryLocalMatrix is an implementation of the LocalMatrixInterface storing the matrix values in an array. It is useful when generating multiple local matrices that shall then be added together.
DomainSpaceImp | DiscreteFunctionSpace modelling the domain |
RangeSpaceImp | DiscreteFunctionSpace modelling the range |
|
inherited |
|
inherited |
typedef Traits :: DomainFieldType Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::DomainFieldType |
typedef DomainSpaceImp Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::DomainSpaceType |
|
inherited |
type of block (i.e. FieldMatrix for BlockMatrices
|
inherited |
type of this interface
|
inherited |
type of local matrix implementation
|
inherited |
|
inherited |
|
inherited |
typedef Traits :: RangeFieldType Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::RangeFieldType |
typedef RangeSpaceImp Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::RangeSpaceType |
typedef TemporaryLocalMatrixTraits< DomainSpaceType, RangeSpaceType > Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::Traits |
|
inline |
|
inline |
|
inline |
add value to matrix entry (row,col) where row and col are local row and local column
[in] | localRow | local row |
[in] | localCol | local column |
[in] | value | value to add |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
set all entries of local matrix to zero
References Dune::Fem::DynamicArray< Element, ArrayAllocator >::assign().
|
inlineinherited |
ser column entries to zero
[in] | localCol | local column that is set to zero |
|
inline |
set row to zero values
[in] | localRow | local row that is set to zero |
|
inlineinherited |
return column object for local matrix which contains axpy methods for convenience
col | local column number |
|
inlineinherited |
get number of columns within the matrix
|
inlineinherited |
access to the base function set within the domain space
|
inlineinherited |
|
inlineinherited |
access to the domain space
|
inlineinherited |
finalize local matrix setup and possibly add values to real matrix
|
inline |
|
inline |
initialize the local matrix to entities
[in] | domainEntity | entity within grid of domain space, |
[in] | rangeEntity | entity within grid of range space |
References Dune::Fem::DynamicArray< Element, ArrayAllocator >::resize().
|
inlineinherited |
multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs
[in] | lhs | left hand side |
[out] | rhs | right hand side |
|
inlineinherited |
access to the base function set within the range space
|
inlineinherited |
|
inlineinherited |
access to the range space
|
inlineinherited |
resort ordering in global matrix (if possible)
|
inlineinherited |
get number of rows within the matrix
|
inlineinherited |
scale matrix with scalar value
[in] | scalar | scalar value that scales the matrix |
|
inline |
set value of matrix entry (row,col) where row and col are local row and local column
[in] | localRow | local row |
[in] | localCol | local column |
[in] | value | value to set |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |