dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix Class Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/matrix/densematrix.hh>

Inheritance diagram for Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix:
Inheritance graph

Public Types

typedef LocalMatrixTraits Traits
 
typedef MatrixObject::MatrixType MatrixType
 
typedef Traits::RangeFieldType RangeFieldType
 
typedef Traits::LittleBlockType LittleBlockType
 
typedef RangeFieldType DofType
 
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 MatrixColumnObject< TraitsMatrixColumnType
 

Public Member Functions

 LocalMatrix (MatrixType &matrix, const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace)
 
void init (const RowEntityType &rowEntity, const ColEntityType &colEntity)
 
int rows () const
 
int cols () const
 
void add (const int row, const int col, const DofType &value)
 
const DofTypeget (const int row, const int col) const
 
void set (const int row, const int col, const DofType &value)
 
void clearRow (const int row)
 
void unitRow (const int row)
 
void clear ()
 
void scale (const DofType &value)
 
void init (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity)
 initialize the local matrix to 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 columns () const
 get number of columns within the matrix More...
 
const DomainSpaceTypedomainSpace () const
 access to the domain space More...
 
const RangeSpaceTyperangeSpace () const
 access to the range space More...
 
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...
 
const DomainEntityTypedomainEntity () const
 
const RangeEntityTyperangeEntity () const
 
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 clearCol (const int localCol)
 ser column entries to zero More...
 
MatrixColumnType column (const unsigned int col)
 return column object for local matrix which contains axpy methods for convenience More...
 

Protected Member Functions

const LocalMatrixTraits::LocalMatrixTypeasImp () const
 
LocalMatrixTraits::LocalMatrixTypeasImp ()
 

Static Protected Member Functions

static const LocalMatrixTraits::LocalMatrixTypeasImp (const ThisType &other)
 
static LocalMatrixTraits::LocalMatrixTypeasImp (ThisType &other)
 

Protected Attributes

const DomainSpaceTypedomainSpace_
 
const RangeSpaceTyperangeSpace_
 
DomainBasisFunctionSetType domainBaseSet_
 
RangeBasisFunctionSetType rangeBaseSet_
 

Member Typedef Documentation

template<class DomainSpace , class RangeSpace >
typedef RangeFieldType Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::DofType
template<class LocalMatrixTraits>
typedef BaseType::DomainBasisFunctionSetType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::DomainBasisFunctionSetType
inherited
template<class LocalMatrixTraits>
typedef BaseType::DomainEntityType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::DomainEntityType
inherited
template<class LocalMatrixTraits>
typedef BaseType::DomainSpaceType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::DomainSpaceType
inherited
template<class DomainSpace , class RangeSpace >
typedef Traits::LittleBlockType Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::LittleBlockType
template<class LocalMatrixTraits>
typedef ThisType Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::LocalMatrixInterfaceType
inherited

type of this interface

template<class LocalMatrixTraits>
typedef Traits :: LocalMatrixType Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::LocalMatrixType
inherited

type of local matrix implementation

template<class LocalMatrixTraits>
typedef MatrixColumnObject< Traits > Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::MatrixColumnType
inherited
template<class DomainSpace , class RangeSpace >
typedef MatrixObject::MatrixType Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::MatrixType
template<class LocalMatrixTraits>
typedef BaseType::RangeBasisFunctionSetType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::RangeBasisFunctionSetType
inherited
template<class LocalMatrixTraits>
typedef BaseType::RangeEntityType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::RangeEntityType
inherited
template<class DomainSpace , class RangeSpace >
typedef Traits::RangeFieldType Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::RangeFieldType
template<class LocalMatrixTraits>
typedef BaseType::RangeSpaceType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::RangeSpaceType
inherited
template<class DomainSpace , class RangeSpace >
typedef LocalMatrixTraits Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::Traits

Constructor & Destructor Documentation

template<class DomainSpace , class RangeSpace >
Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::LocalMatrix ( MatrixType matrix,
const DomainSpaceType domainSpace,
const RangeSpaceType rangeSpace 
)
inline

Member Function Documentation

template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::add ( const int  row,
const int  col,
const DofType value 
)
inline

Referenced by Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::add(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::clear(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::clearCol(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::clearRow(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::column(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::columns(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::domainBasisFunctionSet(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::domainEntity(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::domainSpace(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::finalize(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::get(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::init(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::multiplyAdd(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::rangeBasisFunctionSet(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::rangeEntity(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::rangeSpace(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::resort(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::rows(), Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::scale(), and Dune::Fem::LocalMatrixInterface< LocalMatrixTraits< MatrixObject > >::set().

template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::clear ( )
inline
template<class LocalMatrixTraits>
void Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::clearCol ( const int  localCol)
inlineinherited

ser column entries to zero

Parameters
[in]localCollocal column that is set to zero
template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::clearRow ( const int  row)
inline
template<class DomainSpace , class RangeSpace >
int Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::cols ( ) const
inline
template<class LocalMatrixTraits>
MatrixColumnType Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::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 LocalMatrixTraits>
int Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::columns ( ) const
inlineinherited

get number of columns within the matrix

template<class LocalMatrixTraits>
const DomainBasisFunctionSetType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::domainBasisFunctionSet ( ) const
inlineinherited

access to the base function set within the domain space

template<class LocalMatrixTraits>
const DomainEntityType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::domainEntity ( ) const
inlineinherited
template<class LocalMatrixTraits>
const DomainSpaceType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::domainSpace ( ) const
inlineinherited

access to the domain space

template<class LocalMatrixTraits>
void Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::finalize ( )
inlineinherited

finalize local matrix setup and possibly add values to real matrix

template<class DomainSpace , class RangeSpace >
const DofType& Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::get ( const int  row,
const int  col 
) const
inline
template<class LocalMatrixTraits>
void Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::init ( const DomainEntityType domainEntity,
const RangeEntityType rangeEntity 
)
inlineinherited

initialize the local matrix to entities

Parameters
[in]domainEntityentity within grid of domain space,
[in]rangeEntityentity within grid of range space
template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::init ( const RowEntityType rowEntity,
const ColEntityType colEntity 
)
inline
template<class LocalMatrixTraits>
template<class DomainLocalFunctionType , class RangeLocalFunctionType >
void Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::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 LocalMatrixTraits>
const RangeBasisFunctionSetType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::rangeBasisFunctionSet ( ) const
inlineinherited

access to the base function set within the range space

template<class LocalMatrixTraits>
const RangeEntityType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::rangeEntity ( ) const
inlineinherited
template<class LocalMatrixTraits>
const RangeSpaceType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::rangeSpace ( ) const
inlineinherited

access to the range space

template<class LocalMatrixTraits>
void Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::resort ( )
inlineinherited

resort ordering in global matrix (if possible)

template<class DomainSpace , class RangeSpace >
int Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::rows ( ) const
inline
template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::scale ( const DofType value)
inline
template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::set ( const int  row,
const int  col,
const DofType value 
)
inline
template<class DomainSpace , class RangeSpace >
void Dune::Fem::DenseRowMatrixObject< DomainSpace, RangeSpace >::LocalMatrix::unitRow ( const int  row)
inline

Member Data Documentation

template<class LocalMatrixTraits>
DomainBasisFunctionSetType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::domainBaseSet_
protectedinherited
template<class LocalMatrixTraits>
const DomainSpaceType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::domainSpace_
protectedinherited
template<class LocalMatrixTraits>
RangeBasisFunctionSetType Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::rangeBaseSet_
protectedinherited
template<class LocalMatrixTraits>
const RangeSpaceType& Dune::Fem::LocalMatrixDefault< LocalMatrixTraits >::rangeSpace_
protectedinherited

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