1 #ifndef GAUDIMATH_NUMERICALDERIVATIVE_H 2 #define GAUDIMATH_NUMERICALDERIVATIVE_H 1 12 #include "CLHEP/GenericFunctions/AbsFunction.hh" 15 #if defined(__clang__) || defined(__CLING__) 16 #pragma clang diagnostic push 17 #pragma clang diagnostic ignored "-Winconsistent-missing-override" 18 #elif defined(__GNUC__) && __GNUC__ >= 5 19 #pragma GCC diagnostic push 20 #pragma GCC diagnostic ignored "-Wsuggest-override" 25 namespace GaudiMathImplementation
92 ( const AbsFunction& function ,
104 unsigned int dimensionality()
const override {
return m_DIM ; }
107 double operator() (
double argument )
const override ;
109 double operator() (
const Argument& argument )
const override ;
115 Derivative partial (
unsigned int index )
const override;
120 const AbsFunction&
function ()
const {
return *m_function ; }
122 size_t index ()
const {
return m_index ; }
127 const Type& setType (
const Type& value );
130 double result ()
const {
return m_result ; }
132 double error ()
const {
return m_error ; }
163 #if defined(__clang__) || defined(__CLING__) 164 #pragma clang diagnostic pop 165 #elif defined(__GNUC__) && __GNUC__ >= 5 166 #pragma GCC diagnostic pop 172 #endif // GAUDIMATH_NUMERICALDERIVATIVE_H size_t index() const
index
bool hasAnalyticDerivative() const override
Does this function have an analytic derivative?
double error() const
the absolute error estimate for the last call
const Type & type() const
type
Type
the type of numerical differentiation
std::unique_ptr< const AbsFunction > m_function
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
PropertyMgr & operator=(const PropertyMgr &)=delete
This class is used for returning status codes from appropriate routines.
Numerical derivative (using GSL adaptive numerical differentiation)
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
double result() const
the result of the last call