dune-functions 2.9.0
|
A wrapper providing multiindex access to vector entries. More...
#include <dune/functions/functionspacebases/hierarchicvectorwrapper.hh>
Public Types | |
using | Vector = V |
template<class MultiIndex > | |
using | Entry = Coefficient< MultiIndex > |
Public Member Functions | |
HierarchicVectorWrapper (Vector &vector) | |
template<class SizeProvider > | |
void | resize (const SizeProvider &sizeProvider) |
template<class MultiIndex > | |
const Entry< MultiIndex > & | operator[] (const MultiIndex &index) const |
template<class MultiIndex > | |
Entry< MultiIndex > & | operator[] (const MultiIndex &index) |
template<class MultiIndex > | |
const Entry< MultiIndex > & | operator() (const MultiIndex &index) const |
template<class MultiIndex > | |
Entry< MultiIndex > & | operator() (const MultiIndex &index) |
const Vector & | vector () const |
Vector & | vector () |
A wrapper providing multiindex access to vector entries.
The coefficient type should be a type such that the coefficients entries for each global basis function can be cast to this type. This is necessary because the wrapper cannot determine this type automatically for multi-type containers and non-uniform indices. The reason for this is, that the multi-index type will then be dynamically sized such that the index depth cannot statically be determined from the multi-indices. However, the compiler needs a fixed termination criterion for instantiation of recursive functions.
If no coefficient type is given, the wrapper tries to determine the coefficient type on its own assuming that the multi-indices have fixed size.
V | Type of the raw wrapper vector |
CO | Coefficient type |
using Dune::Functions::HierarchicVectorWrapper< V, CO >::Entry = Coefficient<MultiIndex> |
using Dune::Functions::HierarchicVectorWrapper< V, CO >::Vector = V |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |