| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
Genfun::GaudiMathImplementation Namespace Reference

## 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 Documentation

typedef Genfun::GaudiMathImplementation::SimpleFunction Genfun::GaudiMathImplementation::GSLFunction

the actual type for primitive adaptor

Definition at line 30 of file GSLFunAdapters.h.

## Function Documentation

double Genfun::GaudiMathImplementation::GSL_Adaptor | ( | double | x,
|  | void * | params
| ) |  |

Definition at line 38 of file Helpers.cpp.

{
// 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
const double fun = function( argument ) ;
// restore the argument
argument[index] = x_prev ;
return fun ;
}