Dune Core Modules (2.10.0)
Composition of grid functions with another function. More...
#include <dune/functions/gridfunctions/composedgridfunction.hh>
Public Member Functions | |
template<class OFT , class... IFT, disableCopyMove< ComposedGridFunction, OFT > = 0, std::enable_if_t<(sizeof...(IFT) > 0), int > = 0> | |
ComposedGridFunction (OFT &&outerFunction, IFT &&... innerFunctions) | |
Create ComposedGridFunction. More... | |
Range | operator() (const Domain &x) const |
Evaluation of the composed grid function in coordinates x | |
const EntitySet & | entitySet () const |
Return the EntitySet associated to this composed grid-function. More... | |
Friends | |
Traits::DerivativeInterface | derivative (const ComposedGridFunction &t) |
Not implemented. | |
LocalFunction | localFunction (const ComposedGridFunction &cgf) |
Create a local-function of this composed grid-function. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<class OF , class... IF> | |
auto | makeComposedGridFunction (OF &&outerFunction, IF &&... innerFunction) |
Create a ComposedGridFunction that composes grid-functions with another function. More... | |
Detailed Description
class Dune::Functions::ComposedGridFunction< OF, IF >
Composition of grid functions with another function.
For given inner grid functions g0, ..., gn
and an outer function f
this creates a grid function representing f(g0(x), ..., gn(x))
. The only assumption made, is that the range types of the inner functions can be passed to the outer ones, and that all grid functions are defined on the same EntitySet.
Notice that all functions are captured by value. To store references you can pass std::ref()
.
- Template Parameters
-
OF Type of outer function. std::reference_wrapper is supported. IF Types of inner outer functions. std::reference_wrapper
is supported.
Constructor & Destructor Documentation
◆ ComposedGridFunction()
|
inline |
Create ComposedGridFunction.
Outer and inner functions will be captured by value. To store references you can pass std::ref()
.
- Parameters
-
outerFunction The outer function to be composed with the grid functions. innerFunctions The inner grid functions
Member Function Documentation
◆ entitySet()
|
inline |
Return the EntitySet associated to this composed grid-function.
It is implicitly assumed that all inner-functions can be bound to the same set of entities. Thus, the EntitySet is either of the EntitySets of the inner-function, e.g., the one from the first inner-function.
Requirements:
- Number of inner-functions > 0
References Dune::resolveRef().
Friends And Related Function Documentation
◆ localFunction
|
friend |
Create a local-function of this composed grid-function.
The LocalFunction is defined by composition of the outer-function with the corresponding local-functions of the inner-functions.
The documentation for this class was generated from the following file:
- dune/functions/gridfunctions/composedgridfunction.hh