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;
#define ClassDef(name, id)
Documentation for the abstract class IBaseFunctionMultiDim.
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
virtual unsigned int NDim() const
Retrieve the dimension of the function.
TPyMultiGenFunction(PyObject *self=0)
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
TPyMultiGenFunction(const TPyMultiGenFunction &src)
virtual double DoEval(const double *x) const
Simply forward the call to python self.
virtual ~TPyMultiGenFunction()
Destructor. Only deref if still holding on to Py_None (circular otherwise).
TPyMultiGenFunction & operator=(const TPyMultiGenFunction &)
TPyMultiGradFunction(PyObject *self=0)
virtual unsigned int NDim() const
Retrieve the dimension of the function.
virtual void Gradient(const double *x, double *grad) 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.
TPyMultiGradFunction & operator=(const TPyMultiGradFunction &)
virtual ROOT::Math::IBaseFunctionMultiDim * Clone() const
Clone a function.
virtual ~TPyMultiGradFunction()
Destructor. Only deref if still holding on to Py_None (circular otherwise).
virtual double DoEval(const double *x) const
Simply forward the call to python self.
virtual void FdF(const double *x, double &f, double *df) const
Simply forward the call to python self.
TPyMultiGradFunction(const TPyMultiGradFunction &src)
Namespace for new Math classes and functions.
IGradientFunctionMultiDim IMultiGradFunction
IMultiGenFunctionTempl< double > IMultiGenFunction