A mutable view on the subspace of a DOFVector,. More...
#include <DiscreteFunction.hpp>
Classes | |
| class | LocalFunction |
Public Member Functions | |
| template<class C , class B , class... Path, REQUIRES(Concepts::Similar< Underlying_t< C >, Coefficients >) , REQUIRES(Concepts::Similar< Underlying_t< B >, GlobalBasis >) > | |
| DiscreteFunction (C &&coefficients, B &&basis, Path... path) | |
Constructor. Stores a pointer to the mutable coefficients vector. | |
| template<class Expr , class Tag = tag::assign> | |
| 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::assign> | |
| 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) |
| Coefficients const & | coefficients () const |
| Return the const DOFVector. | |
| template<class Range = void, class... Indices> | |
| auto | child (Indices... ii) const |
Protected Attributes | |
| std::shared_ptr< 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 >::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 AMDiS::makeGridFunction().
Referenced by DiscreteFunction< Coeff, GB, TreePath, R >::interpolate().