Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TPyMultiGradFunction Class Reference

Definition at line 48 of file TPyFitFunction.h.

Public Member Functions

 TPyMultiGradFunction (PyObject *self=0)
 
virtual ~TPyMultiGradFunction ()
 Destructor. Only deref if still holding on to Py_None (circular otherwise). More...
 
virtual ROOT::Math::IBaseFunctionMultiDimClone () const
 Clone a function. More...
 
virtual double DoDerivative (const double *x, unsigned int icoord) const
 Simply forward the call to python self. More...
 
virtual double DoEval (const double *x) const
 Simply forward the call to python self. More...
 
virtual void FdF (const double *x, double &f, double *df) const
 Simply forward the call to python self. More...
 
virtual void Gradient (const double *x, double *grad) const
 Simply forward the call to python self. More...
 
virtual unsigned int NDim () const
 Retrieve the dimension of the function. More...
 
- Public Member Functions inherited from ROOT::Math::IGradientFunctionMultiDimTempl< T >
virtual ~IGradientFunctionMultiDimTempl ()
 Virtual Destructor (no operations) More...
 
virtual void FdF (const T *x, T &f, T *df) const
 Optimized method to evaluate at the same time the function value and derivative at a point x. More...
 
virtual void Gradient (const T *x, T *grad) const
 Evaluate all the vector of function derivatives (gradient) at a point x. More...
 
virtual unsigned int NDim () const=0
 Retrieve the dimension of the function. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDimTempl< T >
 IBaseFunctionMultiDimTempl ()
 
virtual ~IBaseFunctionMultiDimTempl ()
 virtual destructor More...
 
virtual IBaseFunctionMultiDimTempl< T > * Clone () const =0
 Clone a function. More...
 
virtual unsigned int NDim () const =0
 Retrieve the dimension of the function. More...
 
operator() (const T *x) const
 Evaluate the function at a point x[]. More...
 
- Public Member Functions inherited from ROOT::Math::IGradientMultiDimTempl< T >
virtual ~IGradientMultiDimTempl ()
 virual destructor More...
 
Derivative (const T *x, unsigned int icoord=0) const
 Return the partial derivative with respect to the passed coordinate. More...
 
virtual void FdF (const T *x, T &f, T *df) const =0
 Optimized method to evaluate at the same time the function value and derivative at a point x. More...
 
virtual void Gradient (const T *x, T *grad) const =0
 Evaluate all the vector of function derivatives (gradient) at a point x. More...
 

Private Member Functions

 TPyMultiGradFunction (const TPyMultiGradFunction &src)
 
TPyMultiGradFunctionoperator= (const TPyMultiGradFunction &)
 

Private Attributes

PyObjectfPySelf
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IGradientFunctionMultiDimTempl< T >
typedef IBaseFunctionMultiDimTempl< T > BaseFunc
 
typedef IGradientMultiDimTempl< T > BaseGrad
 
- Public Types inherited from ROOT::Math::IBaseFunctionMultiDimTempl< T >
typedef T BackendType
 
typedef IBaseFunctionMultiDimTempl< T > BaseFunc
 

#include <TPyFitFunction.h>

Inheritance diagram for TPyMultiGradFunction:
[legend]

Constructor & Destructor Documentation

◆ TPyMultiGradFunction() [1/2]

TPyMultiGradFunction::TPyMultiGradFunction ( PyObject self = 0)

Definition at line 132 of file TPyFitFunction.cxx.

◆ ~TPyMultiGradFunction()

TPyMultiGradFunction::~TPyMultiGradFunction ( )
virtual

Destructor. Only deref if still holding on to Py_None (circular otherwise).

Definition at line 147 of file TPyFitFunction.cxx.

◆ TPyMultiGradFunction() [2/2]

TPyMultiGradFunction::TPyMultiGradFunction ( const TPyMultiGradFunction src)
inlineprivate

Definition at line 68 of file TPyFitFunction.h.

Member Function Documentation

◆ Clone()

virtual ROOT::Math::IBaseFunctionMultiDim * TPyMultiGradFunction::Clone ( ) const
inlinevirtual

Clone a function.

Each derived class must implement their version of the Clone method

Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.

Definition at line 55 of file TPyFitFunction.h.

◆ DoDerivative()

double TPyMultiGradFunction::DoDerivative ( const double *  x,
unsigned int  icoord 
) const
virtual

Simply forward the call to python self.

Definition at line 250 of file TPyFitFunction.cxx.

◆ DoEval()

double TPyMultiGradFunction::DoEval ( const double *  x) const
virtual

Simply forward the call to python self.

Definition at line 175 of file TPyFitFunction.cxx.

◆ FdF()

void TPyMultiGradFunction::FdF ( const double *  x,
double &  f,
double *  df 
) const
virtual

Simply forward the call to python self.

Definition at line 219 of file TPyFitFunction.cxx.

◆ Gradient()

void TPyMultiGradFunction::Gradient ( const double *  x,
double *  grad 
) const
virtual

Simply forward the call to python self.

Definition at line 195 of file TPyFitFunction.cxx.

◆ NDim()

unsigned int TPyMultiGradFunction::NDim ( ) const
virtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.

Definition at line 156 of file TPyFitFunction.cxx.

◆ operator=()

TPyMultiGradFunction & TPyMultiGradFunction::operator= ( const TPyMultiGradFunction )
inlineprivate

Definition at line 70 of file TPyFitFunction.h.

Member Data Documentation

◆ fPySelf

PyObject* TPyMultiGradFunction::fPySelf
private

Definition at line 73 of file TPyFitFunction.h.

Libraries for TPyMultiGradFunction:
[legend]

The documentation for this class was generated from the following files: