Documentation for class Functor class.
It is used to wrap in a very simple and convenient way multidimensional function objects. It can wrap all the following types:
The function dimension is required when constructing the functor.
Public Types  
typedef FunctorImpl< IBaseFunctionMultiDim >  Impl 
typedef IBaseFunctionMultiDim::BaseFunc  ImplBase 
Public Types inherited from ROOT::Math::IBaseFunctionMultiDimTempl< T >  
typedef T  BackendType 
typedef IBaseFunctionMultiDimTempl< T >  BaseFunc 
Public Member Functions  
Functor ()  
Default constructor. More...  
template<typename Func >  
Functor (const Func &f, unsigned int dim)  
construct from a callable object of multidimension with the right signature (implementing operator()(const double *x) More...  
Functor (const Functor &rhs)  
Copy constructor for functor based on ROOT::Math::IMultiGenFunction. More...  
template<class PtrObj , typename MemFn >  
Functor (const PtrObj &p, MemFn memFn, unsigned int dim)  
construct from a pointer to member function (multidim type) More...  
Functor (const std::function< double(double const *)> &f, unsigned int dim)  
specialized constructor from a std::function of multidimension with the right signature (double operator()(double const *x) This specialized constructor is introduced in order to use the Functor class in Python passing Python user defined functions More...  
virtual  ~Functor () 
Destructor (no operations) More...  
ImplBase *  Clone () const 
Clone a function. More...  
unsigned int  NDim () const 
Retrieve the dimension of the function. More...  
Functor &  operator= (const Functor &rhs) 
Assignment operator. 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...  
T  operator() (const T *x) const 
Evaluate the function at a point x[]. More...  
Private Member Functions  
double  DoEval (const double *x) const 
Private Attributes  
std::unique_ptr< Impl >  fImpl 
#include <Math/Functor.h>

inline 

inline 

inline 

inlinevirtual 

inline 
Copy constructor for functor based on ROOT::Math::IMultiGenFunction.

inlinevirtual 
Clone a function.
Each derived class must implement their version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.

inlinevirtual 
Retrieve the dimension of the function.
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.