![]() |
ROOT 6.14/05 Reference Guide |
Functor Handler to Wrap pointers to member functions for the evaluation of the function and the gradient.
The member function type must be (XXX means any name is allowed) : double XXX ( double x) for 1D function and derivative evaluation double XXX (const double *x) for multi-dimensional function evaluation and double XXX (cost double *x, int icoord) for partial derivatives evaluation
Public Member Functions | |
MemGradFunHandler (const PointerToObj &pObj, PointerToMemFn pMemFn, PointerToGradMemFn pGradMemFn) | |
constructor from a pointer to the class and a pointer to the function More... | |
MemGradFunHandler (unsigned int dim, const PointerToObj &pObj, PointerToMemFn pMemFn, PointerToGradMemFn pGradMemFn) | |
constructor from a pointer to the class and a pointer to the function More... | |
virtual | ~MemGradFunHandler () |
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 (double x) const |
double | DoDerivative (const double *x, unsigned int icoord) const |
double | DoEval (double x) const |
double | DoEval (const double *x) const |
Private Attributes | |
unsigned int | fDim |
PointerToGradMemFn | fGradMemFn |
PointerToMemFn | fMemFn |
PointerToObj | fObj |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
private |
|
private |
|
mutableprivate |