template<class Range, class Domain, template< class > class DerivativeTraits, size_t bufferSize>
class Dune::Functions::DifferentiableFunction< Range(Domain), DerivativeTraits, bufferSize >
Class storing differentiable functions using type erasure.
- Template Parameters
-
Range | Range type |
Domain | Domain type |
DerivativeTraits | Traits class to determine range of derivative (defaults to DefaultDerivativeTraits) |
bufferSize | Size of stack buffer for small object optimization (defaults to 56) |
This models the Concept::DifferentiableFunction<Range(Domain), DerivativeTraits> concept. Small object optimization is used to store the given function. If its size exceed bufferSize
, memory will be allocated dynamically.