The Gaudi Framework  v29r0 (ff2e7097)
Adapters.cpp
Go to the documentation of this file.
1 // ============================================================================
2 // Include files
3 // ============================================================================
4 // STD & STL
5 // ============================================================================
6 #include <iostream>
7 // ============================================================================
8 // AIDA
9 // ============================================================================
10 #include "AIDA/IFunction.h"
11 // ============================================================================
12 // local
13 // ============================================================================
14 #include "GaudiMath/Adapters.h"
15 // ============================================================================
16 
22 namespace GaudiMath
23 {
24 
25  AIDAFunction adapter( const AIDA::IFunction& function ) { return AIDAFunction( function ); }
26 
27  Function2D adapter( Function2D::Function function ) { return Function2D( function ); }
28 
29  Function3D adapter( Function3D::Function function ) { return Function3D( function ); }
30 
31  SimpleFunction adapter( SimpleFunction::Function1 function ) { return SimpleFunction( function ); }
32 
33  SimpleFunction adapter( const size_t dim, SimpleFunction::Function2 function )
34  {
35  return SimpleFunction( function, dim );
36  }
37 
38  SimpleFunction adapter( const size_t dim, SimpleFunction::Function3 function )
39  {
40  return SimpleFunction( function, dim );
41  }
42 
43  GSLFunctionWithMode adapter( GSLFunctionWithMode::Function function, const gsl_mode_t& mode )
44  {
45  return GSLFunctionWithMode( function, mode );
46  }
47 
49 
51  {
52  return GSLFunctionWithModeAndError( function, mode );
53  }
54 
55 } // end of namespace GaudiMath
56 // ============================================================================
57 // The END
58 // ============================================================================
Genfun::GaudiMathImplementation::GSLFunctionWithMode GSLFunctionWithMode
Definition: Adapters.h:20
double(* Function)(const double, const double)
the actual type of the function "to be adapted"
Definition: FunAdapters.h:163
Genfun::GaudiMathImplementation::GSLFunctionWithError GSLFunctionWithError
Definition: Adapters.h:21
Genfun::GaudiMathImplementation::Adapter3DoubleFunction Function3D
Definition: Adapters.h:17
double(* Function3)(const std::vector< double > &)
Definition: FunAdapters.h:273
double(* Function)(double, gsl_mode_t)
the actual type of the function
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:268
Genfun::GaudiMathImplementation::Adapter2DoubleFunction Function2D
Definition: Adapters.h:16
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:159
mandatory macro from CLHEP/GenericFunctions
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:222
Genfun::GaudiMathImplementation::GSLFunctionWithModeAndError GSLFunctionWithModeAndError
Definition: Adapters.h:22
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition: Adapters.cpp:25
GaudiMath.h GaudiMath/GaudiMath.h.
Definition: Adapters.h:13
Genfun::GaudiMathImplementation::SimpleFunction SimpleFunction
Definition: Adapters.h:18
int(* Function)(double, gsl_sf_result *)
the actual type of the function
mandatory macro from CLHEP/GenericFunctions
double(* Function)(const double, const double, const double)
the actual type of the function "to be adapted"
Definition: FunAdapters.h:226
Genfun::GaudiMathImplementation::AdapterIFunction AIDAFunction
Definition: Adapters.h:15
int(* Function)(double, gsl_mode_t, gsl_sf_result *)
the actual type of the function
constructor from the IFunction ( see AIDA/IFunction.h)
Definition: FunAdapters.h:101