| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines