class ROOT::Math::GradFunctor: public ROOT::Math::IGradientFunctionMultiDim


   Documentation for class Functor class.
   It is used to wrap in a very simple and convenient way multi-dimensional function objects.
   It can wrap all the following types:
   <ul>
   <li> any C++ callable object implemention double operator()( const double *  )
   <li> a free C function of type double ()(double * )
   <li> a member function with the correct signature like Foo::Eval(const double * ).
       In this case one pass the object pointer and a pointer to the member function (&Foo::Eval)
   </ul>
   The function dimension is required when constructing the functor.

   @ingroup  GenFunc


Function Members (Methods)

public:
virtual~GradFunctor()
virtual ROOT::Math::GradFunctor::ImplBase*Clone() const
doubleROOT::Math::IGradientMultiDim::Derivative(const double* x, unsigned int icoord = 0) const
virtual voidROOT::Math::IGradientFunctionMultiDim::FdF(const double* x, double& f, double* df) const
ROOT::Math::GradFunctorGradFunctor()
ROOT::Math::GradFunctorGradFunctor(const ROOT::Math::GradFunctor&)
ROOT::Math::GradFunctorGradFunctor(void* p1, void* p2, unsigned int dim)
ROOT::Math::GradFunctorGradFunctor(void* p1, unsigned int dim, const char* className, const char* methodName, const char* derivName)
virtual voidROOT::Math::IGradientFunctionMultiDim::Gradient(const double* x, double* grad) const
virtual unsigned intNDim() const
doubleROOT::Math::IBaseFunctionMultiDim::operator()(const double* x) const
ROOT::Math::GradFunctor&operator=(const ROOT::Math::GradFunctor& rhs)
private:
virtual doubleDoDerivative(const double* x, unsigned int icoord) const
virtual doubleDoEval(const double* x) const

Data Members

private:
auto_ptr<ROOT::Math::IGradientFunctionMultiDim>fImplpointer to base grad functor handler

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

BaseFunc * Clone()
 clone of the function handler (use copy-ctor)
unsigned int NDim()
 constructor for multi-dimensional functions
double DoEval(const double* x) const
double DoDerivative(double x)
GradFunctor(const ROOT::Math::GradFunctor& )
      Default constructor

{}
GradFunctor( const Func & f, unsigned int dim )
      construct from a callable object of multi-dimension
      implementing operator()(const double *x) and
      Derivative(const double * x,icoord)

{}
GradFunctor(const PtrObj& p, MemFn memFn, GradMemFn gradFn, unsigned int dim )
       construct from a pointer to member function and member function types for function and derivative evaluations

{}
GradFunctor(void* p1, void* p2, unsigned int dim)
      construct for Gradient Functions of multi-dimension
      Func gives the function evaluatiion, GradFunc the partial derivatives
      The function dimension is  required

{ }
virtual ~GradFunctor()
      Destructor (no operations)

{}

Author: L. Moneta Mon Nov 13 15:58:13 2006
Last change: root/mathcore:$Id: Functor.h 24482 2008-06-23 15:33:08Z moneta $
Last generated: 2008-06-25 08:29
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.