ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TPyMultiGradFunction Class Reference

Definition at line 52 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 unsigned int NDim () const
 Retrieve the dimension of the function. More...
 
virtual double DoEval (const double *x) 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 void FdF (const double *x, double &f, double *df) const
 Simply forward the call to python self. More...
 
virtual double DoDerivative (const double *x, unsigned int icoord) const
 Simply forward the call to python self. More...
 
 ClassDef (TPyMultiGradFunction, 1)
 
- Public Member Functions inherited from ROOT::Math::IGradientFunctionMultiDim
virtual ~IGradientFunctionMultiDim ()
 Virtual Destructor (no operations) More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDim
 IBaseFunctionMultiDim ()
 
virtual ~IBaseFunctionMultiDim ()
 virtual destructor More...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. More...
 
- Public Member Functions inherited from ROOT::Math::IGradientMultiDim
virtual ~IGradientMultiDim ()
 virual destructor More...
 
double Derivative (const double *x, unsigned int icoord=0) const
 Return the partial derivative with respect to the passed coordinate. More...
 

Private Member Functions

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

Private Attributes

PyObjectfPySelf
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IGradientFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 
typedef IGradientMultiDim BaseGrad
 
- Public Types inherited from ROOT::Math::IBaseFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 

#include <TPyFitFunction.h>

+ Inheritance diagram for TPyMultiGradFunction:
+ Collaboration diagram for TPyMultiGradFunction:

Constructor & Destructor Documentation

TPyMultiGradFunction::TPyMultiGradFunction ( PyObject self = 0)

Definition at line 132 of file TPyFitFunction.cxx.

Referenced by Clone().

TPyMultiGradFunction::~TPyMultiGradFunction ( )
virtual

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

Definition at line 147 of file TPyFitFunction.cxx.

TPyMultiGradFunction::TPyMultiGradFunction ( const TPyMultiGradFunction src)
inlineprivate

Definition at line 72 of file TPyFitFunction.h.

Member Function Documentation

TPyMultiGradFunction::ClassDef ( TPyMultiGradFunction  ,
 
)
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::IBaseFunctionMultiDim.

Definition at line 59 of file TPyFitFunction.h.

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

Simply forward the call to python self.

Implements ROOT::Math::IGradientMultiDim.

Definition at line 250 of file TPyFitFunction.cxx.

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

Simply forward the call to python self.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 175 of file TPyFitFunction.cxx.

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

Simply forward the call to python self.

Reimplemented from ROOT::Math::IGradientFunctionMultiDim.

Definition at line 219 of file TPyFitFunction.cxx.

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

Simply forward the call to python self.

Reimplemented from ROOT::Math::IGradientFunctionMultiDim.

Definition at line 195 of file TPyFitFunction.cxx.

unsigned int TPyMultiGradFunction::NDim ( ) const
virtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 156 of file TPyFitFunction.cxx.

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

Definition at line 74 of file TPyFitFunction.h.

Member Data Documentation

PyObject* TPyMultiGradFunction::fPySelf
private

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