dune-pdelab
2.7-git
|
An accumulate-only view on a local matrix that automatically takes into account an accumulation weight. More...
#include <dune/pdelab/gridoperator/common/localmatrix.hh>
Public Types | |
typedef C | Container |
The type of the underlying container. More... | |
typedef Container::BaseContainer | BaseContainer |
The type of the storage container underlying the LocalVector. More... | |
typedef C::value_type | value_type |
The value type of the entries. More... | |
typedef C::weight_type | weight_type |
The type of the weight applied when accumulating contributions. More... | |
typedef WeightedMatrixAccumulationView | WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views. More... | |
typedef C::size_type | size_type |
The size_type of the underlying container. More... | |
Public Member Functions | |
WeightedAccumulationView | weightedAccumulationView (weight_type weight) |
Returns a WeighedAccumulationView with some weight in addition to this view's weight. More... | |
weight_type | weight () const |
Returns the weight associated with this view. More... | |
void | setWeight (weight_type weight) |
Resets the weighting coefficient of the view. More... | |
template<typename LFSU , typename LFSV > | |
void | accumulate (const LFSV &lfsv, size_type i, const LFSU &lfsu, size_type j, value_type v) |
Applies the current weight to v and adds the result to the matrix entry associated with the i-th entry of lfsv and the j-th entry of lfsu. More... | |
template<typename LFSU , typename LFSV > | |
void | rawAccumulate (const LFSV &lfsv, size_type i, const LFSU &lfsu, size_type j, value_type v) |
Adds v to the (i,j)-th entry of the underlying container without applying the current weight. More... | |
size_type | nrows () const |
Returns the number of rows of the underlying container. More... | |
size_type | ncols () const |
Returns the number of colums of the underlying container. More... | |
bool | modified () const |
Returns whether this view has been written to. More... | |
void | resetModified () |
Resets the modification state of the view to not modified. More... | |
Container & | container () |
Returns the container (of type LocalMatrix) that this view is based on. More... | |
const Container & | container () const |
Returns the container (of type LocalMatrix) that this view is based on (const version). More... | |
BaseContainer & | base () |
Returns the storage container of the underlying LocalMatrix. More... | |
const BaseContainer & | base () const |
Returns the storage container of the underlying LocalVector (const version). More... | |
WeightedMatrixAccumulationView (Container &container, weight_type weight) | |
Constructor. More... | |
An accumulate-only view on a local matrix that automatically takes into account an accumulation weight.
typedef Container::BaseContainer Dune::PDELab::WeightedMatrixAccumulationView< C >::BaseContainer |
The type of the storage container underlying the LocalVector.
typedef C Dune::PDELab::WeightedMatrixAccumulationView< C >::Container |
The type of the underlying container.
typedef C::size_type Dune::PDELab::WeightedMatrixAccumulationView< C >::size_type |
The size_type of the underlying container.
typedef C::value_type Dune::PDELab::WeightedMatrixAccumulationView< C >::value_type |
The value type of the entries.
typedef C::weight_type Dune::PDELab::WeightedMatrixAccumulationView< C >::weight_type |
The type of the weight applied when accumulating contributions.
typedef WeightedMatrixAccumulationView Dune::PDELab::WeightedMatrixAccumulationView< C >::WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views.
|
inline |
Constructor.
|
inline |
Applies the current weight to v and adds the result to the matrix entry associated with the i-th entry of lfsv and the j-th entry of lfsu.
|
inline |
Returns the storage container of the underlying LocalMatrix.
|
inline |
Returns the storage container of the underlying LocalVector (const version).
|
inline |
Returns the container (of type LocalMatrix) that this view is based on.
|
inline |
Returns the container (of type LocalMatrix) that this view is based on (const version).
|
inline |
Returns whether this view has been written to.
|
inline |
Returns the number of colums of the underlying container.
|
inline |
Returns the number of rows of the underlying container.
|
inline |
Adds v to the (i,j)-th entry of the underlying container without applying the current weight.
|
inline |
Resets the modification state of the view to not modified.
|
inline |
Resets the weighting coefficient of the view.
|
inline |
Returns the weight associated with this view.
|
inline |
Returns a WeighedAccumulationView with some weight in addition to this view's weight.