DUNE PDELab (2.8)
Concrete function implementations. More...
Functions | |
template<class K , int sinFactor, int cosFactor> | |
TrigonometricFunction< K, -cosFactor, sinFactor > | Dune::Functions::derivative (const TrigonometricFunction< K, sinFactor, cosFactor > &f) |
Obtain derivative of TrigonometricFunction function. | |
template<class F > | |
CallableFunctionWrapper< F > | Dune::Functions::callable (const F &f) |
Create a callable object from some Dune::VirtualFunction. More... | |
template<class F > | |
CallableFunctionWrapper< F > | Dune::Functions::callable (const std::shared_ptr< F > &fp) |
Create a callable object from std::shared_ptr<F> More... | |
template<class Signature , template< class > class DerivativeTraits, class... F> | |
DifferentiableFunctionFromCallables< Signature, DerivativeTraits, F... > | Dune::Functions::makeDifferentiableFunctionFromCallables (const SignatureTag< Signature, DerivativeTraits > &signatureTag, F &&... f) |
Create a DifferentiableFunction from callables. More... | |
template<typename... TT> | |
void | Dune::Functions::localFunction (DiscreteGlobalBasisFunction< TT... > &&t)=delete |
Construction of local functions from a temporary DiscreteGlobalBasisFunction (forbidden) More... | |
Detailed Description
Concrete function implementations.
Function Documentation
◆ callable() [1/2]
CallableFunctionWrapper< F > Dune::Functions::callable | ( | const F & | f | ) |
Create a callable object from some Dune::VirtualFunction.
- Template Parameters
-
F Function type derived from Dune::VirtualFunction
- Parameters
-
f The function to be wrapper
The returned object will only be valid as long f is valid. You can e.g. do the following:
◆ callable() [2/2]
CallableFunctionWrapper< F > Dune::Functions::callable | ( | const std::shared_ptr< F > & | fp | ) |
Create a callable object from std::shared_ptr<F>
- Template Parameters
-
F Function type derived from Dune::VirtualFunction
- Parameters
-
fp std::shared_ptr<F> to the function to be wrapper
The returned object will share ownership of fp using a std::shared_ptr. You can e.g. do the following:
◆ localFunction()
|
delete |
Construction of local functions from a temporary DiscreteGlobalBasisFunction (forbidden)
Since a DiscreteGlobalBasisFunction::LocalFunction stores a reference to the global DiscreteGlobalBasisFunction its life time is bound to the latter. Hence construction from a temporary DiscreteGlobalBasisFunction would lead to a dangling reference and is thus forbidden/deleted.
References Dune::Functions::istlVectorBackend().
◆ makeDifferentiableFunctionFromCallables()
DifferentiableFunctionFromCallables< Signature, DerivativeTraits, F... > Dune::Functions::makeDifferentiableFunctionFromCallables | ( | const SignatureTag< Signature, DerivativeTraits > & | signatureTag, |
F &&... | f | ||
) |
Create a DifferentiableFunction from callables.
This will return a wrapper modelling the DifferentiableFunction interface where the evaluation of the function and its derivatives are implemented by the given callable objects.
- Parameters
-
signatureTag A dummy parameter to pass the signature and derivative traits f Callable objects implementing the evaluation of the function and its derivatives
- Returns
- Object modelling DifferentiableFunction interface