Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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  AIDAFunction adapter( const AIDA::IFunction& function ) { return AIDAFunction( function ); }
25 
26  Function2D adapter( Function2D::Function function ) { return Function2D( function ); }
27 
28  Function3D adapter( Function3D::Function function ) { return Function3D( function ); }
29 
30  SimpleFunction adapter( SimpleFunction::Function1 function ) { return SimpleFunction( function ); }
31 
32  SimpleFunction adapter( const size_t dim, SimpleFunction::Function2 function ) {
33  return SimpleFunction( function, dim );
34  }
35 
36  SimpleFunction adapter( const size_t dim, SimpleFunction::Function3 function ) {
37  return SimpleFunction( function, dim );
38  }
39 
40  GSLFunctionWithMode adapter( GSLFunctionWithMode::Function function, const gsl_mode_t& mode ) {
41  return GSLFunctionWithMode( function, mode );
42  }
43 
45 
47  return GSLFunctionWithModeAndError( function, mode );
48  }
49 
50 } // end of namespace GaudiMath
51 // ============================================================================
52 // The END
53 // ============================================================================
Genfun::GaudiMathImplementation::GSLFunctionWithMode GSLFunctionWithMode
Definition: Adapters.h:19
double(* Function)(const double, const double)
the actual type of the function "to be adapted"
Definition: FunAdapters.h:109
Genfun::GaudiMathImplementation::GSLFunctionWithError GSLFunctionWithError
Definition: Adapters.h:20
Genfun::GaudiMathImplementation::Adapter3DoubleFunction Function3D
Definition: Adapters.h:16
double(* Function3)(const std::vector< double > &)
Definition: FunAdapters.h:217
double(* Function)(double, gsl_mode_t)
the actual type of the function
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:213
Genfun::GaudiMathImplementation::Adapter2DoubleFunction Function2D
Definition: Adapters.h:15
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:106
mandatory macro from CLHEP/GenericFunctions
mandatory macro from CLHEP/GenericFunctions
Definition: FunAdapters.h:168
Genfun::GaudiMathImplementation::GSLFunctionWithModeAndError GSLFunctionWithModeAndError
Definition: Adapters.h:21
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition: Adapters.cpp:24
GaudiMath.h GaudiMath/GaudiMath.h.
Definition: Adapters.h:13
Genfun::GaudiMathImplementation::SimpleFunction SimpleFunction
Definition: Adapters.h:17
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:171
Genfun::GaudiMathImplementation::AdapterIFunction AIDAFunction
Definition: Adapters.h:14
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:49