#include <TPyFitFunction.h>
Inheritance diagram for TPyMultiGradFunction:
Public Member Functions | |
TPyMultiGradFunction (PyObject *self=0) | |
virtual | ~TPyMultiGradFunction () |
virtual ROOT::Math::IBaseFunctionMultiDim * | Clone () const |
virtual unsigned int | NDim () const |
virtual double | DoEval (const double *x) const |
virtual void | Gradient (const double *x, double *grad) const |
virtual void | FdF (const double *x, double &f, double *df) const |
virtual double | DoDerivative (const double *x, unsigned int icoord) const |
ClassDef (TPyMultiGradFunction, 1) | |
Private Member Functions | |
TPyMultiGradFunction (const TPyMultiGradFunction &src) | |
TPyMultiGradFunction & | operator= (const TPyMultiGradFunction &) |
Private Attributes | |
PyObject * | fPySelf |
Definition at line 49 of file TPyFitFunction.h.
virtual TPyMultiGradFunction::~TPyMultiGradFunction | ( | ) | [virtual] |
TPyMultiGradFunction::TPyMultiGradFunction | ( | const TPyMultiGradFunction & | src | ) | [inline, private] |
Definition at line 69 of file TPyFitFunction.h.
virtual ROOT::Math::IBaseFunctionMultiDim* TPyMultiGradFunction::Clone | ( | ) | const [inline, virtual] |
Clone a function. Each derived class must implement his version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 56 of file TPyFitFunction.h.
References fPySelf, and TPyMultiGradFunction().
virtual unsigned int TPyMultiGradFunction::NDim | ( | ) | const [virtual] |
Retrieve the dimension of the function
Implements ROOT::Math::IBaseFunctionMultiDim.
Implementation of the evaluation function. Must be implemented by derived classes
Implements ROOT::Math::IBaseFunctionMultiDim.
Evaluate all the vector of function derivatives (gradient) at a point x. Derived classes must re-implement it if more efficient than evaluting one at a time
Reimplemented from ROOT::Math::IGradientFunctionMultiDim.
virtual void TPyMultiGradFunction::FdF | ( | const double * | x, | |
double & | f, | |||
double * | df | |||
) | const [virtual] |
Optimized method to evaluate at the same time the function value and derivative at a point x. Often both value and derivatives are needed and it is often more efficient to compute them at the same time. Derived class should implement this method if performances play an important role and if it is faster to evaluate value and derivative at the same time
Reimplemented from ROOT::Math::IGradientFunctionMultiDim.
virtual double TPyMultiGradFunction::DoDerivative | ( | const double * | x, | |
unsigned int | icoord | |||
) | const [virtual] |
function to evaluate the derivative with respect each coordinate. To be implemented by the derived class
Implements ROOT::Math::IGradientMultiDim.
TPyMultiGradFunction::ClassDef | ( | TPyMultiGradFunction | , | |
1 | ||||
) |
TPyMultiGradFunction& TPyMultiGradFunction::operator= | ( | const TPyMultiGradFunction & | ) | [inline, private] |
Definition at line 71 of file TPyFitFunction.h.
PyObject* TPyMultiGradFunction::fPySelf [private] |