3 #ifndef ROOT_TPyFitFunction
4 #define ROOT_TPyFitFunction
33 virtual unsigned int NDim()
const;
34 virtual double DoEval(
const double*
x )
const;
57 virtual unsigned int NDim()
const;
58 virtual double DoEval(
const double*
x )
const;
60 virtual void Gradient(
const double*
x,
double* grad )
const;
61 virtual void FdF(
const double*
x,
double&
f,
double* df )
const;
62 virtual double DoDerivative(
const double *
x,
unsigned int icoord )
const;
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
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 &)
#define ClassDef(name, id)
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 &)
Documentation for the abstract class IBaseFunctionMultiDim.
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.
IMultiGenFunctionTempl< double > IMultiGenFunction
virtual double DoEval(const double *x) const
Simply forward the call to python self.
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
virtual ~TPyMultiGenFunction()
Destructor. Only deref if still holding on to Py_None (circular otherwise).
TPyMultiGradFunction(PyObject *self=0)
virtual void Gradient(const double *x, double *grad) const
Simply forward the call to python self.