![]() |
ROOT
6.06/09
Reference Guide
|
Functor Handler class for gradient functions where both callable objects are provided for the function evaluation (type Func) and for the gradient (type GradFunc) .
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 gradient function object must implement double operator() (const double * x, int icoord)
Public Member Functions | |
FunctorGradHandler (const Func &fun, const GradFunc &gfun) | |
FunctorGradHandler (unsigned int dim, const Func &fun, const GradFunc &gfun) | |
virtual | ~FunctorGradHandler () |
ImplFunc * | Copy () const |
BaseFunc * | Clone () const |
unsigned int | NDim () const |
Private Types | |
typedef ParentFunctor::Impl | ImplFunc |
typedef ImplFunc::BaseFunc | BaseFunc |
Private Member Functions | |
double | DoEval (double x) const |
double | DoEval (const double *x) const |
double | DoDerivative (double x) const |
double | DoDerivative (const double *x, unsigned int icoord) const |
Private Attributes | |
unsigned int | fDim |
Func | fFunc |
GradFunc | fGradFunc |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
Definition at line 163 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::Copy().
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 180 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::Clone().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
Definition at line 209 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::NDim().
|
mutableprivate |
Definition at line 210 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::DoEval().
|
mutableprivate |
Definition at line 211 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::DoDerivative().