|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Classes | |
| class | Constant |
| Fixed constant function. More... | |
| class | AdapterIFunction |
| constructor from the IFunction ( see AIDA/IFunction.h) More... | |
| class | Adapter2DoubleFunction |
| constructor from the trivial function with two argument More... | |
| class | Adapter3DoubleFunction |
| constructor from the trivial function with two argument More... | |
| class | SimpleFunction |
| class | GSLFunctionWithError |
| class | GSLFunctionWithMode |
| class | GSLFunctionWithModeAndError |
| class | NumericalDefiniteIntegral |
| This class allows the numerical evaluation of the following functions: More... | |
| class | NumericalDerivative |
| Numerical derivative (using GSL adaptive numerical differentiation) More... | |
| class | NumericalIndefiniteIntegral |
| The simple class for numerical integrations. More... | |
| class | SplineBase |
| class | GSLSpline |
| class | GSLSplineDeriv |
| class | GSLSplineDeriv2 |
| class | GSLSplineInteg |
| class | GSL_Helper |
the simple structure to be used for adaption interface Genfun::AbsFunction to gsl_function structure More... | |
Typedefs | |
| typedef Genfun::GaudiMathImplementation::SimpleFunction | GSLFunction |
| the actual type for primitive adaptor | |
Functions | |
| double | GSL_Adaptor (double x, void *params) |
| typedef Genfun::GaudiMathImplementation::SimpleFunction Genfun::GaudiMathImplementation::GSLFunction |
the actual type for primitive adaptor
Definition at line 30 of file GSLFunAdapters.h.
| double Genfun::GaudiMathImplementation::GSL_Adaptor | ( | double | x, |
| void * | params | ||
| ) |
Definition at line 33 of file Helpers.cpp.
{}
// ========================================================================
// ========================================================================
double GSL_Adaptor( double x , void* params )
{
// get parameters
GSL_Helper* aux = (GSL_Helper*) params ;
// decode parameters
const Genfun::AbsFunction& function = aux -> m_function ;
const size_t index = aux -> m_index ;
Genfun::Argument& argument = aux -> m_argument ;
// save the current value of argument
const double x_prev = argument[index] ;
// modify the argument
argument[index]= x ;
// evaluate the function