A mutable view on the subspace of a DOFVector,. More...
#include <DiscreteFunction.hpp>
Classes | |
class | LocalFunction |
Public Member Functions | |
template<class... Path> | |
DiscreteFunction (Coefficients &coefficients, GlobalBasis const &basis, Path... path) | |
Constructor. Stores a pointer to the mutable dofvector . | |
template<class... Path> | |
DiscreteFunction (Coefficients &coefficients, std::shared_ptr< GlobalBasis const > const &basis, Path... path) | |
template<class DV , class... Path, Dune::disableCopyMove< DiscreteFunction, DV > = 0, class Coeff_ = TYPEOF(std::declval<DV>().coefficients()), class GB_ = TYPEOF(std::declval<DV>().basis())> | |
DiscreteFunction (DV &&dofVector, Path... path) | |
Construct a DiscreteFunction directly from a DOFVector. | |
template<class Expr , class Tag = tag::average> | |
void | interpolate_noalias (Expr &&expr, Tag strategy={}) |
Interpolation of GridFunction to DOFVector, assuming that there is no reference to this DOFVector in the expression. More... | |
template<class Expr , class Tag = tag::average> | |
void | interpolate (Expr &&expr, Tag strategy={}) |
Interpolation of GridFunction to DOFVector. More... | |
template<class Expr > | |
Self & | operator<< (Expr &&expr) |
Interpolation of GridFunction to DOFVector, alias to interpolate() | |
template<class Expr > | |
Self & | operator+= (Expr &&expr) |
interpolate (*this) + expr to DOFVector | |
template<class Expr > | |
Self & | operator-= (Expr &&expr) |
interpolate (*this) - expr to DOFVector | |
Coefficients & | coefficients () |
Return the mutable DOFVector. | |
template<class Range = void, class... Indices> | |
auto | child (Indices... ii) |
Protected Attributes | |
Coefficients * | mutableCoeff_ |
A mutable view on the subspace of a DOFVector,.
A view on a subspace of a DOFVector.
Coeff | Const or mutable coefficient vector |
GB | The type of the global basis |
TreePath | A realization of Dune::TypeTree::HybridTreePath |
Range | The range type for th evaluation of the discrete function |
Requirements:
void interpolate | ( | Expr && | expr, |
Tag | strategy = {} |
||
) |
Interpolation of GridFunction to DOFVector.
Example:
Allows to have a reference to the DOFVector in the expression, e.g. as DiscreteFunction or gradientOf() of a DiscreteFunction.
References DiscreteFunction< Coeff, GB, TreePath, R >::interpolate_noalias().
Referenced by DiscreteFunction< Coeff, GB, TreePath, R >::DiscreteFunction(), DiscreteFunction< Coeff, GB, TreePath, R >::interpolate_noalias(), DiscreteFunction< Coeff, GB, TreePath, R >::operator+=(), DiscreteFunction< Coeff, GB, TreePath, R >::operator-=(), and DiscreteFunction< Coeff, GB, TreePath, R >::operator<<().
void interpolate_noalias | ( | Expr && | expr, |
Tag | strategy = {} |
||
) |
Interpolation of GridFunction to DOFVector, assuming that there is no reference to this DOFVector in the expression.
Example:
References DiscreteFunction< Coeff, GB, TreePath, R >::interpolate(), AMDiS::interpolate(), and AMDiS::makeGridFunction().
Referenced by DiscreteFunction< Coeff, GB, TreePath, R >::DiscreteFunction(), and DiscreteFunction< Coeff, GB, TreePath, R >::interpolate().