Functor Handler class for gradient functions where both callable objects are provided for the function evaluation (type Func) and for the derivative (type DerivFunc) .
It can be created from any function implementing the correct signature corresponding to the requested type In the case of one dimension the function evaluation object and the derivative function object must implement double operator() (double x). In the case of multi-dimension the function evaluation object must implement double operator() (const double * x) and the derivative function object must implement double operator() (const double * x, int icoord)
Public Member Functions | |
FunctorDerivHandler (const Func &fun, const DerivFunc &gfun) | |
FunctorDerivHandler (unsigned int dim, const Func &fun, const DerivFunc &gfun) | |
virtual | ~FunctorDerivHandler () |
BaseFunc * | Clone () const |
ImplFunc * | Copy () const |
unsigned int | NDim () const |
Private Types | |
typedef ImplFunc::BaseFunc | BaseFunc |
typedef ParentFunctor::Impl | ImplFunc |
Private Member Functions | |
double | DoDerivative (const double *x, unsigned int icoord) const |
double | DoDerivative (double x) const |
double | DoEval (const double *x) const |
double | DoEval (double x) const |
Private Attributes | |
DerivFunc | fDerivFunc |
unsigned int | fDim |
Func | fFunc |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
mutableprivate |
|
private |
|
mutableprivate |