Logo ROOT   6.08/07
Reference Guide
List of all members | 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 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::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:
[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 72 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::IBaseFunctionMultiDim.

Definition at line 59 of file TPyFitFunction.h.

◆ DoDerivative()

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.

◆ DoEval()

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.

◆ FdF()

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.

◆ Gradient()

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.

◆ NDim()

unsigned int TPyMultiGradFunction::NDim ( ) const
virtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 156 of file TPyFitFunction.cxx.

◆ operator=()

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

Definition at line 74 of file TPyFitFunction.h.

Member Data Documentation

◆ fPySelf

PyObject* TPyMultiGradFunction::fPySelf
private

Definition at line 77 of file TPyFitFunction.h.


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