A Const DiscreteFunction. More...
#include <DiscreteFunction.hpp>
Public Types | |
enum | { hasDerivative = false } |
This GridFunction has no derivative function, it can be created by DiscreteGridFunction. | |
using | EntitySet = Dune::Functions::GridViewEntitySet< GridView, 0 > |
Set of entities the DiscreteFunction is defined on. | |
using | Domain = typename EntitySet::GlobalCoordinate |
Global coordinates of the EntitySet. | |
using | Range = std::conditional_t< std::is_same_v< R, void >, RangeType_t< SubTree, Coefficient >, R > |
Range type of this DiscreteFunction. If R=void deduce the Range automatically, using RangeType_t. | |
Public Member Functions | |
template<class... Path> | |
DiscreteFunction (Coefficients const &coefficients, GlobalBasis const &basis, Path... path) | |
Constructor. Stores a pointer to the dofVector and a copy of the treePath. | |
template<class... Path> | |
DiscreteFunction (Coefficients const &coefficients, std::shared_ptr< GlobalBasis const > const &basisPtr, 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 const &dofVector, Path... path) | |
Construct a DiscreteFunction directly from a DOFVector. | |
Range | operator() (Domain const &x) const |
Evaluate DiscreteFunction in global coordinates. NOTE: expensive. | |
EntitySet const & | entitySet () const |
Return a Dune::Functions::GridViewEntitySet. | |
GlobalBasis const & | basis () const |
Return global basis bound to the DOFVector. | |
TreePath const & | treePath () const |
Return treePath associated with this discrete function. | |
Coefficients const & | coefficients () const |
Return const coefficient vector. | |
template<class Range = void, class... Indices> | |
auto | child (Indices... ii) const |
Protected Attributes | |
Coefficients const * | coefficients_ |
GlobalBasis const * | basis_ |
TreePath | treePath_ |
EntitySet | entitySet_ |
Related Functions | |
(Note that these are not member functions.) | |
LocalFunction< tag::value > | makeLocalFunction () const |
Create a local function for this view on the DOFVector. More... | |
A Const DiscreteFunction.
|
related |
Create a local function for this view on the DOFVector.
References DiscreteFunction< Coeff, GB, TreePath, R >::coefficients().