BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Gradient interface (abstract class) defining the signature for calculating the gradient of a multi-dimensional function. Three methods are provided:
Concrete classes should derive from ROOT::Math::IGradientFunctionMultiDim and not from this class.
Definition at line 201 of file IFunction.h.
Public Member Functions | |
virtual | ~IGradientMultiDimTempl () |
virual destructor More... | |
T | Derivative (const T *x, unsigned int icoord=0) const |
virtual void | FdF (const T *x, T &f, T *df) const =0 |
virtual void | Gradient (const T *x, T *grad) const =0 |
Private Member Functions | |
virtual T | DoDerivative (const T *x, unsigned int icoord) const =0 |
|
inlinevirtual |
|
inline |
Return the partial derivative with respect to the passed coordinate
Definition at line 217 of file IFunction.h.
References ROOT::Math::IGradientMultiDimTempl< T >::DoDerivative().
Referenced by ROOT::Math::MinimTransformFunction::DoDerivative(), and ROOT::Math::IGradientFunctionMultiDimTempl< T >::Gradient().
|
privatepure virtual |
function to evaluate the derivative with respect each coordinate. To be implemented by the derived class
Referenced by ROOT::Math::IGradientMultiDimTempl< T >::Derivative().
|
pure virtual |
Optimized method to evaluate at the same time the function value and derivative at a point x. Often both value and derivatives are needed and it is often more efficient to compute them at the same time. Derived class should implement this method if performances play an important role and if it is faster to evaluate value and derivative at the same time
Implemented in ROOT::Math::IGradientFunctionMultiDimTempl< T >.
|
pure virtual |
Evaluate all the vector of function derivatives (gradient) at a point x. Derived classes must re-implement if it is more efficient than evaluting one at a time
Implemented in ROOT::Math::IGradientFunctionMultiDimTempl< T >.