dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::LocalMatrixWrapper< LocalMatrixStack > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/common/localmatrixwrapper.hh>

Inheritance diagram for Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >:
Inheritance graph

Public Types

typedef LocalMatrixStack LocalMatrixStackType
 type of the local matrix stack More...
 
typedef LocalMatrixWrapperTraits< LocalMatrixStackTypeTraits
 type of the traits More...
 
typedef Traits::WrappedLocalMatrixType WrappedLocalMatrixType
 type of the wrapped local matrix More...
 
typedef Traits::RangeFieldType RangeFieldType
 
typedef BaseType::DomainSpaceType DomainSpaceType
 
typedef BaseType::RangeSpaceType RangeSpaceType
 
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< TraitsMatrixColumnType
 

Public Member Functions

 LocalMatrixWrapper (LocalMatrixStackType &stack)
 constructor creating an uninitialized local matrix More...
 
template<class DomainEntityType , class RangeEntityType >
 LocalMatrixWrapper (LocalMatrixStackType &stack, const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity)
 constructor initializing the wrapped local matrix More...
 
 LocalMatrixWrapper (const ThisType &other)
 copy constructor More...
 
 ~LocalMatrixWrapper ()
 destructor More...
 
void init (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity)
 initialize the local matrix to entities More...
 
void add (int localRow, 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 (int localRow, int localCol, const RangeFieldType &value)
 set value of matrix entry (row,col) where row and col are local row and local column More...
 
void clearRow (const int localRow)
 set row to zero values More...
 
void clearCol (const int localCol)
 set row to zero values 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 More...
 
void resort ()
 resort ordering in global matrix (if possible) More...
 
int rows () const
 get number of rows within the matrix More...
 
int columns () const
 get number of columns within the matrix More...
 
template<class DomainLocalFunctionImp , class RangeLocalFunctionImp >
void multiplyAdd (const DomainLocalFunctionImp &dLf, RangeLocalFunctionImp &rLf)
 multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs More...
 
const DomainSpaceTypedomainSpace () const
 access to the domain space More...
 
const RangeSpaceTyperangeSpace () const
 access to the range space More...
 
const DomainEntityTypedomainEntity () const
 
const RangeEntityTyperangeEntity () const
 
const DomainBasisFunctionSetTypedomainBasisFunctionSet () const
 access to the base function set within the domain space More...
 
const RangeBasisFunctionSetTyperangeBasisFunctionSet () const
 access to the base function set within the range space More...
 
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...
 
MatrixColumnType column (const unsigned int col)
 return column object for local matrix which contains axpy methods for convenience More...
 
void finalize ()
 finalize local matrix setup and possibly add values to real matrix More...
 

Protected Member Functions

const WrappedLocalMatrixTypelocalMatrix () const
 
WrappedLocalMatrixTypelocalMatrix ()
 
const LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixTypeasImp () const
 
LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixTypeasImp ()
 

Static Protected Member Functions

static const LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixTypeasImp (const ThisType &other)
 
static LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixTypeasImp (ThisType &other)
 

Member Typedef Documentation

template<class LocalMatrixStack >
typedef BaseType::DomainBasisFunctionSetType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::DomainBasisFunctionSetType
template<class LocalMatrixStack >
typedef BaseType::DomainEntityType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::DomainEntityType
template<class LocalMatrixStack >
typedef BaseType::DomainSpaceType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::DomainSpaceType

type of block (i.e. FieldMatrix for BlockMatrices

type of this interface

template<class LocalMatrixStack >
typedef LocalMatrixStack Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::LocalMatrixStackType

type of the local matrix stack

type of local matrix implementation

template<class LocalMatrixStack >
typedef BaseType::RangeBasisFunctionSetType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::RangeBasisFunctionSetType
template<class LocalMatrixStack >
typedef BaseType::RangeEntityType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::RangeEntityType
template<class LocalMatrixStack >
typedef Traits::RangeFieldType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::RangeFieldType
template<class LocalMatrixStack >
typedef BaseType::RangeSpaceType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::RangeSpaceType
template<class LocalMatrixStack >
typedef LocalMatrixWrapperTraits< LocalMatrixStackType > Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::Traits

type of the traits

template<class LocalMatrixStack >
typedef Traits::WrappedLocalMatrixType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::WrappedLocalMatrixType

type of the wrapped local matrix

Constructor & Destructor Documentation

template<class LocalMatrixStack >
Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::LocalMatrixWrapper ( LocalMatrixStackType stack)
inlineexplicit

constructor creating an uninitialized local matrix

template<class LocalMatrixStack >
template<class DomainEntityType , class RangeEntityType >
Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::LocalMatrixWrapper ( LocalMatrixStackType stack,
const DomainEntityType domainEntity,
const RangeEntityType rangeEntity 
)
inline

constructor initializing the wrapped local matrix

template<class LocalMatrixStack >
Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::LocalMatrixWrapper ( const ThisType other)
inline

copy constructor

Parameters
[in]otherLocalMatrixWrapper to copy
template<class LocalMatrixStack >
Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::~LocalMatrixWrapper ( )
inline

destructor

Member Function Documentation

template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::add ( int  localRow,
int  localCol,
const RangeFieldType value 
)
inline

add value to matrix entry (row,col) where row and col are local row and local column

Parameters
[in]localRowlocal row
[in]localCollocal column
[in]valuevalue to add
static const LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType & Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > > , LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType & Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > > , LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType & Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > > , LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType >::asImp ( ) const
inlineprotectedinherited
LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType & Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > > , LocalMatrixWrapperTraits< LocalMatrixStack >::LocalMatrixType >::asImp ( )
inlineprotectedinherited
template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::clear ( )
inline

set all entries of local matrix to zero

template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::clearCol ( const int  localCol)
inline

set row to zero values

Parameters
[in]localRowlocal row that is set to zero
template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::clearRow ( const int  localRow)
inline

set row to zero values

Parameters
[in]localRowlocal row that is set to zero
MatrixColumnType Dune::Fem::LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > >::column ( const unsigned int  col)
inlineinherited

return column object for local matrix which contains axpy methods for convenience

Parameters
collocal column number
Returns
object of type MatrixColumnObject
template<class LocalMatrixStack >
int Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::columns ( ) const
inline

get number of columns within the matrix

template<class LocalMatrixStack >
const DomainBasisFunctionSetType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::domainBasisFunctionSet ( ) const
inline

access to the base function set within the domain space

template<class LocalMatrixStack >
const DomainEntityType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::domainEntity ( ) const
inline
template<class LocalMatrixStack >
const DomainSpaceType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::domainSpace ( ) const
inline

access to the domain space

void Dune::Fem::LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > >::finalize ( )
inlineinherited

finalize local matrix setup and possibly add values to real matrix

template<class LocalMatrixStack >
const RangeFieldType Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::get ( const int  localRow,
const int  localCol 
) const
inline

get value of matrix entry (row,col) where row and col are local row and local column

Parameters
[in]localRowlocal row
[in]localCollocal column
Returns
value of matrix entry
template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::init ( const DomainEntityType domainEntity,
const RangeEntityType rangeEntity 
)
inline

initialize the local matrix to entities

Parameters
[in]domainEntityentity within grid of domain space,
[in]rangeEntityentity within grid of range space
template<class LocalMatrixStack >
const WrappedLocalMatrixType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::localMatrix ( ) const
inlineprotected
template<class LocalMatrixStack >
WrappedLocalMatrixType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::localMatrix ( )
inlineprotected
void Dune::Fem::LocalMatrixInterface< LocalMatrixWrapperTraits< LocalMatrixStack > >::multiplyAdd ( const DomainLocalFunctionType &  lhs,
RangeLocalFunctionType &  rhs 
) const
inlineinherited

multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs

Parameters
[in]lhsleft hand side
[out]rhsright hand side
template<class LocalMatrixStack >
template<class DomainLocalFunctionImp , class RangeLocalFunctionImp >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::multiplyAdd ( const DomainLocalFunctionImp &  dLf,
RangeLocalFunctionImp &  rLf 
)
inline

multiply left hand side with local matrix and add to right hand side rhs += Matrix * lhs

Parameters
[in]lhsleft hand side
[out]rhsright hand side
template<class LocalMatrixStack >
const RangeBasisFunctionSetType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::rangeBasisFunctionSet ( ) const
inline

access to the base function set within the range space

template<class LocalMatrixStack >
const RangeEntityType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::rangeEntity ( ) const
inline
template<class LocalMatrixStack >
const RangeSpaceType& Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::rangeSpace ( ) const
inline

access to the range space

template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::resort ( )
inline

resort ordering in global matrix (if possible)

template<class LocalMatrixStack >
int Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::rows ( ) const
inline

get number of rows within the matrix

template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::scale ( const RangeFieldType scalar)
inline

scale matrix with scalar value

Parameters
[in]scalarscalar value that scales the matrix
template<class LocalMatrixStack >
void Dune::Fem::LocalMatrixWrapper< LocalMatrixStack >::set ( int  localRow,
int  localCol,
const RangeFieldType value 
)
inline

set value of matrix entry (row,col) where row and col are local row and local column

Parameters
[in]localRowlocal row
[in]localCollocal column
[in]valuevalue to set

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