6 #include "CLHEP/GenericFunctions/AbsFunction.hh"
18 namespace GaudiMathImplementation
22 GSL_Helper::GSL_Helper
23 (
const Genfun::AbsFunction&
function ,
24 Genfun::Argument& argument ,
26 : m_function ( function ) ,
27 m_argument ( argument ) ,
40 GSL_Helper* aux = (GSL_Helper*) params ;
42 const Genfun::AbsFunction&
function = aux -> m_function ;
43 const size_t index = aux -> m_index ;
44 Genfun::Argument& argument = aux -> m_argument ;
46 const double x_prev = argument[index] ;
50 const double fun =
function( argument ) ;
52 argument[index] = x_prev ;
double GSL_Adaptor(double x, void *params)
double fun(const std::vector< double > &x)