18#ifndef ROOT_Math_IFunction
19#define ROOT_Math_IFunction
86 virtual unsigned int NDim()
const = 0;
102 template <
class Iterator>
221 T
Derivative(
const T *
x,
unsigned int icoord, T *previous_grad, T *previous_g2,
222 T *previous_gstep)
const
234 virtual void FdF(
const T *
x, T &
f, T *df)
const = 0;
287 virtual void FdF(
double x,
double &
f,
double &df)
const = 0;
309 void FdF(
const double *
x,
double &
f,
double *df)
const
360 unsigned int ndim =
NDim();
361 for (
unsigned int icoord = 0; icoord < ndim; ++icoord)
370 unsigned int ndim =
NDim();
371 for (
unsigned int icoord = 0; icoord < ndim; ++icoord)
383 virtual void FdF(
const T *
x, T &
f, T *df)
const
431 virtual void FdF(
double x,
double &
f,
double &df)
const
Documentation for the abstract class IBaseFunctionMultiDim.
virtual IBaseFunctionMultiDimTempl< T > * Clone() const =0
Clone a function.
T operator()(const T *x) const
Evaluate the function at a point x[].
IBaseFunctionMultiDimTempl< T > BaseFunc
virtual unsigned int NDim() const =0
Retrieve the dimension of the function.
IBaseFunctionMultiDimTempl()
virtual T DoEval(const T *x) const =0
Implementation of the evaluation function.
virtual ~IBaseFunctionMultiDimTempl()
virtual destructor
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
virtual ~IBaseFunctionOneDim()
virtual destructor
IBaseFunctionOneDim BaseFunc
virtual double DoEval(double x) const =0
implementation of the evaluation function. Must be implemented by derived classes
double operator()(const double *x) const
Evaluate the function at a point x[].
virtual IBaseFunctionOneDim * Clone() const =0
Clone a function.
double operator()(double x) const
Evaluate the function at a point x Use the a pure virtual private method DoEval which must be impleme...
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
virtual ~IGradientFunctionMultiDimTempl()
Virtual Destructor (no operations)
IGradientMultiDimTempl< T > BaseGrad
virtual void Gradient(const T *x, T *grad) const
Evaluate all the vector of function derivatives (gradient) at a point x.
virtual unsigned int NDim() const=0
Retrieve the dimension of the function.
virtual void FdF(const T *x, T &f, T *df) const
Optimized method to evaluate at the same time the function value and derivative at a point x.
virtual void GradientWithPrevResult(const T *x, T *grad, T *previous_grad, T *previous_g2, T *previous_gstep) const
In some cases, the gradient algorithm will use information from the previous step,...
IBaseFunctionMultiDimTempl< T > BaseFunc
virtual bool returnsInMinuit2ParameterSpace() const
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
virtual void FdF(double x, double &f, double &df) const
Optimized method to evaluate at the same time the function value and derivative at a point x.
IBaseFunctionOneDim BaseFunc
virtual ~IGradientFunctionOneDim()
Virtual Destructor (no operations)
Gradient interface (abstract class) defining the signature for calculating the gradient of a multi-di...
virtual T DoDerivative(const T *x, unsigned int icoord) const =0
function to evaluate the derivative with respect each coordinate.
T Derivative(const T *x, unsigned int icoord=0) const
Return the partial derivative with respect to the passed coordinate.
virtual void Gradient(const T *x, T *grad) const =0
Evaluate all the vector of function derivatives (gradient) at a point x.
virtual T DoDerivativeWithPrevResult(const T *x, unsigned int icoord, T *, T *, T *) const
In some cases, the derivative algorithm will use information from the previous step,...
virtual ~IGradientMultiDimTempl()
virual destructor
T Derivative(const T *x, unsigned int icoord, T *previous_grad, T *previous_g2, T *previous_gstep) const
In some cases, the derivative algorithm will use information from the previous step,...
virtual void FdF(const T *x, T &f, T *df) const =0
Optimized method to evaluate at the same time the function value and derivative at a point x.
Specialized Gradient interface(abstract class) for one dimensional functions It provides a method to ...
double Derivative(double x) const
Return the derivative of the function at a point x Use the private method DoDerivative.
virtual double DoDerivative(double x) const =0
function to evaluate the derivative with respect each coordinate.
void FdF(const double *x, double &f, double *df) const
Compatibility method with multi-dimensional interface for Gradient and function evaluation.
double Derivative(const double *x) const
Compatibility method with multi-dimensional interface for partial derivative.
virtual ~IGradientOneDim()
virtual destructor
void Gradient(const double *x, double *g) const
Compatibility method with multi-dimensional interface for Gradient.
virtual void FdF(double x, double &f, double &df) const =0
Optimized method to evaluate at the same time the function value and derivative at a point x.
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...