3 #ifndef ROOT_TPyFitFunction
4 #define ROOT_TPyFitFunction
16 #ifndef ROOT_Math_IFunction
37 virtual unsigned int NDim()
const;
38 virtual double DoEval(
const double*
x )
const;
61 virtual unsigned int NDim()
const;
62 virtual double DoEval(
const double*
x )
const;
64 virtual void Gradient(
const double*
x,
double* grad )
const;
65 virtual void FdF(
const double*
x,
double&
f,
double* df )
const;
66 virtual double DoDerivative(
const double *
x,
unsigned int icoord )
const;
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
Namespace for new ROOT classes and functions.
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
ClassDef(TPyMultiGradFunction, 1)
virtual void FdF(const double *x, double &f, double *df) const
Simply forward the call to python self.
TPyMultiGenFunction(const TPyMultiGenFunction &src)
TPyMultiGenFunction & operator=(const TPyMultiGenFunction &)
virtual double DoEval(const double *x) const
Simply forward the call to python self.
virtual double DoDerivative(const double *x, unsigned int icoord) const
Simply forward the call to python self.
TPyMultiGenFunction(PyObject *self=0)
TPyMultiGradFunction & operator=(const TPyMultiGradFunction &)
TPyMultiGradFunction(const TPyMultiGradFunction &src)
virtual ~TPyMultiGradFunction()
Destructor. Only deref if still holding on to Py_None (circular otherwise).
IGradientFunctionMultiDim IMultiGradFunction
virtual unsigned int NDim() const
Retrieve the dimension of the function.
virtual unsigned int NDim() const
Retrieve the dimension of the function.
ClassDef(TPyMultiGenFunction, 1)
IBaseFunctionMultiDim IMultiGenFunction
virtual double DoEval(const double *x) const
Simply forward the call to python self.
Namespace for new Math classes and functions.
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
virtual ~TPyMultiGenFunction()
Destructor. Only deref if still holding on to Py_None (circular otherwise).
Documentation for the abstract class IBaseFunctionMultiDim.
TPyMultiGradFunction(PyObject *self=0)
virtual void Gradient(const double *x, double *grad) const
Simply forward the call to python self.