3 #ifndef GAUDIMATH_FUNADAPTERS_H
4 #define GAUDIMATH_FUNADAPTERS_H 1
10 #include "CLHEP/GenericFunctions/GenericFunctions.hh"
11 #include "CLHEP/GenericFunctions/Argument.hh"
12 #include "CLHEP/GenericFunctions/AbsFunction.hh"
16 namespace AIDA {
class IFunction ; }
20 namespace GaudiMathImplementation
46 virtual double operator() (
double a )
const ;
48 virtual double operator() (
const Argument& x )
const;
63 mutable std::vector<double>
m_arg ;
106 virtual ~Adapter2DoubleFunction () ;
108 virtual
double operator() (
double x ) const ;
110 virtual
double operator() ( const Argument& x ) const ;
112 virtual
unsigned int dimensionality()
const {
return 2 ; }
118 double operator() (
const double x ,
const double y )
const ;
170 virtual ~Adapter3DoubleFunction () ;
172 virtual
double operator() (
double x ) const ;
174 virtual
double operator() ( const Argument& x ) const ;
176 virtual
unsigned int dimensionality()
const {
return 3 ; }
182 double operator() (
const double x ,
184 const double z )
const ;
205 typedef double (*Function1)(
const double ) ;
206 typedef double (*Function2)(
const double* ) ;
207 typedef double (*Function3)(
const std::vector<double>& ) ;
209 enum Case { TrivialArg , ArrayArg , VectorArg } ;
239 virtual ~SimpleFunction();
243 virtual
unsigned int dimensionality ()
const {
return m_DIM ; }
247 virtual double operator() (
double )
const ;
249 virtual double operator() (
const Argument& )
const ;
278 #endif // GAUDIMATH_FUNADAPTERS_H
virtual bool hasAnalyticDerivative() const
Does this function have an analytic derivative?
Genfun::AbsFunction Function
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
virtual unsigned int dimensionality() const
constructor from the trivial function with two argument
virtual bool hasAnalyticDerivative() const
Does this function have an analytic derivative?
std::vector< double > m_arg3
virtual bool hasAnalyticDerivative() const
Does this function have an analytic derivative?
constructor from the trivial function with two argument
const AIDA::IFunction * m_fun
virtual bool hasAnalyticDerivative() const
Does this function have an analytic derivative?
std::vector< double > m_arg
double fun(const std::vector< double > &x)
Genfun::GaudiMathImplementation::SimpleFunction SimpleFunction
constructor from the IFunction ( see AIDA/IFunction.h)