The Gaudi Framework
v30r3 (a5ef0a68)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
GSLAdaptersTest.cpp
Go to the documentation of this file.
1
// ============================================================================
2
// Include file
3
// ============================================================================
4
// STD & STL
5
// ============================================================================
6
#include <cstdio>
7
#include <iostream>
8
// ============================================================================
9
// GaudiGSL/GaudiMath
10
// ============================================================================
11
#include "
GaudiMath/GaudiMath.h
"
12
// ============================================================================
13
// GSL
14
// ============================================================================
15
#include "gsl/gsl_sf_bessel.h"
16
// ============================================================================
17
24
int
main
()
25
{
26
28
const
GaudiMath::Function
& I0 =
GaudiMath::adapter
( gsl_sf_bessel_I0 );
30
const
GaudiMath::Function
& I1 =
GaudiMath::adapter
( gsl_sf_bessel_I1_e );
31
32
for
(
int
i = 0; i < 20; ++i ) {
33
const
double
x = double( i ) * 1 / 20.0;
34
const
double
x0 = I0( x );
35
const
double
x1 = I1( x );
36
printf(
" x = %+8.4f I0=%15.8f I1=%15.8f \n"
, x, x0, x1 );
37
};
38
}
GaudiMath::Function
Genfun::AbsFunction Function
Definition:
GaudiMath.h:24
main
int main()
Definition:
GSLAdaptersTest.cpp:24
GaudiMath::adapter
GAUDI_API AIDAFunction adapter(const AIDA::IFunction &function)
Definition:
Adapters.cpp:25
GaudiMath.h
GaudiGSL
src
Tests
GSLAdaptersTest.cpp
Generated on Wed Aug 1 2018 23:20:57 for The Gaudi Framework by
1.8.11