BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
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 () |
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 | |
unsigned int | fDim |
Func | fFunc |
GradFunc | fGradFunc |
|
private |
|
private |
|
inline |
Definition at line 161 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::Copy().
|
inline |
|
inlinevirtual |
|
inline |
Definition at line 181 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::Copy().
|
inline |
Definition at line 178 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::FunctorGradHandler().
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::Clone().
|
inlineprivate |
Definition at line 202 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::fGradFunc.
|
inlineprivate |
Definition at line 198 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::fGradFunc.
|
inlineprivate |
Definition at line 194 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::fFunc.
|
inlineprivate |
Definition at line 190 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::fFunc.
|
inline |
Definition at line 184 of file Functor.h.
References ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::fDim.
|
private |
Definition at line 207 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::NDim().
|
mutableprivate |
Definition at line 208 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::DoEval().
|
mutableprivate |
Definition at line 209 of file Functor.h.
Referenced by ROOT::Math::FunctorGradHandler< ParentFunctor, Func, GradFunc >::DoDerivative().