![]() |
ROOT 6.08/07 Reference Guide |
Template class to wrap any C++ callable object implementing operator() (const double * x) in a multi-dimensional function interface.
It provides a ROOT::Math::IGenMultiFunction-like signature
Note: If you want to wrap just the reference (to avoid copying) you need to use Func& or const Func & as template parameter. The former should be used when the operator() is not a const method of Func
Definition at line 156 of file WrappedFunction.h.
Public Member Functions | |
WrappedMultiFunction (Func f, unsigned int dim=1) | |
construct from the pointer to the object and the member function More... | |
WrappedMultiFunction * | Clone () const |
clone (required by the interface) More... | |
unsigned int | NDim () const |
Retrieve the dimension of the function. More... | |
![]() | |
IBaseFunctionMultiDim () | |
virtual | ~IBaseFunctionMultiDim () |
virtual destructor More... | |
double | operator() (const double *x) const |
Evaluate the function at a point x[]. More... | |
Private Member Functions | |
virtual double | DoEval (const double *x) const |
Implementation of the evaluation function. More... | |
Private Attributes | |
unsigned int | fDim |
Func | fFunc |
Additional Inherited Members | |
![]() | |
typedef IBaseFunctionMultiDim | BaseFunc |
#include <Math/WrappedFunction.h>
|
inline |
construct from the pointer to the object and the member function
Definition at line 164 of file WrappedFunction.h.
|
inlinevirtual |
clone (required by the interface)
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 172 of file WrappedFunction.h.
|
inlineprivatevirtual |
Implementation of the evaluation function.
Must be implemented by derived classes
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 182 of file WrappedFunction.h.
|
inlinevirtual |
Retrieve the dimension of the function.
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 176 of file WrappedFunction.h.
|
private |
Definition at line 188 of file WrappedFunction.h.
|
private |
Definition at line 187 of file WrappedFunction.h.