1 #ifndef GAUDIMATH_CONSTANT_H 2 #define GAUDIMATH_CONSTANT_H 1 8 #include "CLHEP/GenericFunctions/AbsFunction.hh" 12 #if defined( __clang__ ) || defined( __CLING__ ) 13 #pragma clang diagnostic push 14 #pragma clang diagnostic ignored "-Winconsistent-missing-override" 15 #elif defined( __GNUC__ ) && __GNUC__ >= 5 16 #pragma GCC diagnostic push 17 #pragma GCC diagnostic ignored "-Wsuggest-override" 22 namespace GaudiMathImplementation
42 Constant(
const double value,
const size_t dim );
49 double operator()(
double )
const override {
return m_value; }
51 double operator()(
const Argument& )
const override {
return m_value; }
53 Derivative partial(
unsigned int i )
const override;
66 #if defined( __clang__ ) || defined( __CLING__ ) 67 #pragma clang diagnostic pop 68 #elif defined( __GNUC__ ) && __GNUC__ >= 5 69 #pragma GCC diagnostic pop 75 #endif // GAUDIMATH_CONSTANT_H
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
PropertyMgr & operator=(const PropertyMgr &)=delete
double operator()(double) const override
Function value.
bool hasAnalyticDerivative() const override
Does this function have an analytic derivative?
double operator()(const Argument &) const override
Function value.
Genfun::GaudiMathImplementation::Constant Constant
unsigned int dimensionality() const override
dimensionality of the problem