|
ROOT
Reference Guide |
|
Go to the documentation of this file.
25 #ifndef ROOT_Math_WrappedFunction
26 #define ROOT_Math_WrappedFunction
55 template<
typename Func = FreeFunctionPtr >
105 template<
typename FuncObj,
typename MemFuncPtr >
153 template<
typename Func = FreeMultiFunctionPtr >
180 virtual double DoEval (
const double *
x)
const {
192 template<
typename FuncObj,
typename MemFuncPtr >
219 virtual double DoEval (
const double *
x)
const {
Template class to wrap any member function of a class taking a double and returning a double in a 1D ...
Template class to wrap any C++ callable object which takes one argument i.e.
WrappedFunction(Func f)
construct from the pointer to the object and the member function
WrappedMemFunction * Clone() const
clone (required by the interface)
Template class to wrap any C++ callable object implementing operator() (const double * x) in a multi-...
unsigned int NDim() const
Retrieve the dimension of the function.
WrappedMultiFunction(Func f, unsigned int dim=1)
construct from the pointer to the object and the member function
WrappedFunction * Clone() const
clone (required by the interface)
virtual double DoEval(const double *x) const
double(* FreeFunctionPtr)(double)
WrappedMemMultiFunction * Clone() const
clone (required by the interface)
WrappedMemFunction(FuncObj &obj, MemFuncPtr memFn)
construct from the pointer to the object and the member function
virtual double DoEval(double x) const
implementation of the evaluation function. Must be implemented by derived classes
unsigned int NDim() const
Retrieve the dimension of the function.
double(* FreeMultiFunctionPtr)(const double *)
virtual double DoEval(const double *x) const
WrappedMultiFunction * Clone() const
clone (required by the interface)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
WrappedMemMultiFunction(FuncObj &obj, MemFuncPtr memFn, unsigned int dim=1)
construct from the pointer to the object and the member function
virtual double DoEval(double x) const
implementation of the evaluation function. Must be implemented by derived classes
Documentation for the abstract class IBaseFunctionMultiDim.
Namespace for new Math classes and functions.