11 #include "gsl/gsl_mode.h" 12 #include "gsl/gsl_sf_result.h" 24 namespace GaudiMathImplementation
30 , m_function (
function )
31 , m_result ( std::make_unique<gsl_sf_result>() )
33 m_result -> val = -1.e+10 ;
34 m_result -> err = -1.e+10 ;
41 , m_result ( std::make_unique<gsl_sf_result>() )
43 m_result -> val = func.
m_result -> val ;
44 m_result -> err = func.
m_result -> err ;
63 return Genfun::FunctionNoop( &aux ) ;
66 return Genfun::FunctionNoop( &aux ) ;
81 const gsl_mode_t&
mod )
84 , m_mode ( std::make_unique<gsl_mode_t>(mod) )
92 , m_mode ( std::make_unique<gsl_mode_t>(*(func.
m_mode)) )
107 return Genfun::FunctionNoop( &aux ) ;
110 return Genfun::FunctionNoop( &aux ) ;
122 const gsl_mode_t& mod )
125 , m_mode ( std::make_unique<gsl_mode_t>(mod) )
126 ,
m_result ( std::make_unique<gsl_sf_result>( gsl_sf_result{-1.e+10, -1.e+10} ) )
134 , m_mode ( std::make_unique<gsl_mode_t>(*func.
m_mode) )
139 double GSLFunctionWithModeAndError::operator()
146 double GSLFunctionWithModeAndError::operator()
147 (
const Genfun::Argument& x )
const 154 (
unsigned int i )
const 158 return Genfun::FunctionNoop( &aux ) ;
161 return Genfun::FunctionNoop( &aux ) ;
Function function() const
get the function itself
Function function() const
get the function itself
std::unique_ptr< gsl_mode_t > m_mode
const gsl_sf_result & result() const
get the last evaluated result
double(* Function)(double, gsl_mode_t)
the actual type of the function
const gsl_sf_result & result() const
get the last evaluated result
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
double operator()(double x) const override
the main method
int(* Function)(double, gsl_sf_result *)
the actual type of the function
mandatory macro from CLHEP/GenericFunctions
double operator()(double x) const override
the main method
Genfun::Derivative partial(unsigned int i) const override
std::unique_ptr< gsl_sf_result > m_result
Genfun::Derivative partial(unsigned int i) const override
const gsl_mode_t & mode() const
get the current mode
std::unique_ptr< gsl_mode_t > m_mode
std::unique_ptr< gsl_sf_result > m_result
Function function() const
get the function itself
Genfun::Derivative partial(unsigned int i) const override
GSLFunctionWithModeAndError()
const gsl_mode_t & mode() const
get the current mode
double error() const
get the error in the last estimate of the result
mandatory macro from CLHEP/GenericFunctions
Genfun::GaudiMathImplementation::Constant Constant
double error() const
get the error in the last estimate of the result
int(* Function)(double, gsl_mode_t, gsl_sf_result *)
the actual type of the function