ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
tools99
integrate_wrap.hpp
Go to the documentation of this file.
1
#include <
df1b2fun.h
>
2
#ifndef _WIN32
3
#define FALSE false
4
#define TRUE true
5
#endif
6
#include "
integrate.hpp
"
7
using
gauss_kronrod::integrate
;
8
9
#define LTAIL2(FUN,par1,par2) \
10
template<class Float> \
11
Float ltail##FUN(Float to, Float par1, Float par2){ \
12
FUN<Float> f; \
13
f.par1=par1; \
14
f.par2=par2; \
15
Float ans = 0.0; \
16
return integrate(f,-INFINITY,to); \
17
} \
18
TINYFUN3(ltail##FUN,to,par1,par2)
19
20
#define INTEGRATE1(FUN,par) \
21
template<class Float> \
22
Float integrate##FUN(Float from, Float to, Float par){ \
23
FUN<Float> f; \
24
f.par=par; \
25
Float ans = 0.0; \
26
return integrate(f,from,to); \
27
} \
28
TINYFUN3(integrate##FUN,from,to,par)
29
30
#define LTAIL1(FUN,par) \
31
template<class Float> \
32
Float ltail##FUN(Float to, Float par){ \
33
FUN<Float> f; \
34
f.par=par; \
35
Float ans = 0.0; \
36
return integrate(f,-INFINITY,to); \
37
} \
38
TINYFUN2(ltail##FUN,to,par)
39
40
#define INTEGRATE0(FUN) \
41
template<class Float> \
42
Float integrate##FUN(Float from, Float to){ \
43
FUN<Float> f; \
44
Float ans = 0.0; \
45
return integrate(f,from,to); \
46
} \
47
TINYFUN2(integrate##FUN,from,to)
48
49
#define LTAIL0(FUN) \
50
template<class Float> \
51
Float ltail##FUN(Float to){ \
52
FUN<Float> f; \
53
Float ans = 0.0; \
54
return integrate(f,-INFINITY,to); \
55
} \
56
TINYFUN1(ltail##FUN,to)
gauss_kronrod::integrate
Integrand::Scalar integrate(Integrand f, typename Integrand::Scalar a=-INFINITY, typename Integrand::Scalar b=INFINITY, control c=control())
Integrate function over finite or infinite interval.
Definition:
integrate.hpp:158
integrate.hpp
df1b2fun.h
Description not yet available.
Generated on Wed Sep 7 2022 00:01:29 for ADMB Documentation by
1.8.5