dune-fem
2.4.1-rc
|
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/matrix/spmatrix.hh>
Public Member Functions | |
LocalMatrix (const MatrixObjectType &matrixObject, const DomainSpaceType &domainSpace, const RangeSpaceType &rangeSpace, const DomainMapperType &domainMapper, const RangeMapperType &rangeMapper) | |
LocalMatrix (const LocalMatrix &)=delete | |
void | init (const DomainEntityType &domainEntity, const RangeEntityType &rangeEntity) |
int | rows () const |
return number of rows More... | |
int | columns () const |
return number of columns More... | |
void | add (int localRow, int localCol, const DofType value) |
add value to matrix entry More... | |
DofType | get (int localRow, int localCol) const |
get matrix entry More... | |
void | set (int localRow, int localCol, const DofType value) |
set matrix entry to value More... | |
void | unitRow (const int localRow) |
set matrix row to zero except diagonla entry More... | |
void | clearRow (const int localRow) |
set matrix row to zero More... | |
void | clearCol (const int localCol) |
set matrix column to zero More... | |
void | clear () |
clear all entries belonging to local matrix More... | |
void | scale (const DofType &value) |
scale local matrix with a certain value More... | |
void | resort () |
resort all global rows of matrix to have ascending numbering More... | |
void | finalize () |
finalize local matrix setup and possibly add values to real 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 | 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... | |
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 Types | |
typedef std::vector< typename RangeMapperType::SizeType > | RowIndicesType |
typedef std::vector< typename DomainMapperType::SizeType > | ColumnIndicesType |
Protected Member Functions | |
const LocalMatrixTraits< MatrixObject >::LocalMatrixType & | asImp () const |
LocalMatrixTraits< MatrixObject >::LocalMatrixType & | asImp () |
Static Protected Member Functions | |
static const LocalMatrixTraits< MatrixObject >::LocalMatrixType & | asImp (const ThisType &other) |
static LocalMatrixTraits< MatrixObject >::LocalMatrixType & | asImp (ThisType &other) |
Protected Attributes | |
MatrixType & | matrix_ |
const DomainMapperType & | domainMapper_ |
const RangeMapperType & | rangeMapper_ |
RowIndicesType | rowIndices_ |
global index in the DomainSpace More... | |
ColumnIndicesType | columnIndices_ |
global index in the RangeSpace More... | |
const DomainSpaceType & | domainSpace_ |
const RangeSpaceType & | rangeSpace_ |
DomainBasisFunctionSetType | domainBaseSet_ |
RangeBasisFunctionSetType | rangeBaseSet_ |
|
protected |
typedef RangeFieldType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::DofType |
type of the DoFs
|
inherited |
|
inherited |
typedef Traits :: DomainMapperType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::DomainMapperType |
type of nonblocked domain mapper
|
inherited |
typedef Traits :: LittleBlockType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::LittleBlockType |
type of little blocks
|
inherited |
type of this interface
|
inherited |
type of local matrix implementation
|
inherited |
typedef MatrixObject Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::MatrixObjectType |
type of matrix object
typedef MatrixObjectType :: MatrixType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::MatrixType |
type of matrix
|
inherited |
|
inherited |
typedef Traits :: RangeFieldType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::RangeFieldType |
type of entries of little blocks
typedef Traits :: RangeMapperType Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::RangeMapperType |
type of nonblocked domain mapper
|
inherited |
|
protected |
typedef LocalMatrixTraits< MatrixObjectType > Dune::Fem::SparseRowMatrixObject< DomainSpace, RangeSpace, Matrix >::LocalMatrix< MatrixObject >::Traits |
type of the traits
|
inline |
constructor taking entity and spaces for using mapToGlobal class RowSpaceType, class ColSpaceType>
|
delete |
|
inlineinherited |
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 |
References Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::add(), and Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixTraits >, LocalMatrixTraits::LocalMatrixType >::asImp().
|
inline |
add value to matrix entry
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
clear all entries belonging to local matrix
|
inline |
set matrix column to zero
|
inline |
set matrix row to zero
|
inlineinherited |
return column object for local matrix which contains axpy methods for convenience
col | local column number |
|
inline |
return number of columns
|
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 |
get matrix entry
|
inline |
|
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 |
References Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::columns(), and Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::rows().
|
inlineinherited |
access to the base function set within the range space
|
inlineinherited |
|
inlineinherited |
access to the range space
|
inline |
resort all global rows of matrix to have ascending numbering
|
inline |
return number of rows
|
inlineinherited |
scale matrix with scalar value
[in] | scalar | scalar value that scales the matrix |
References Dune::Fem::BartonNackmanInterface< LocalMatrixInterface< LocalMatrixTraits >, LocalMatrixTraits::LocalMatrixType >::asImp(), and Dune::Fem::LocalMatrixInterface< LocalMatrixTraits >::scale().
|
inline |
scale local matrix with a certain value
|
inlineinherited |
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 |
|
inline |
set matrix entry to value
|
inline |
set matrix row to zero except diagonla entry
|
protected |
global index in the RangeSpace
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
global index in the DomainSpace