|
|
Go to the documentation of this file. 1 #ifndef PhysicsTools_Utilities_Integral_h
2 #define PhysicsTools_Utilities_Integral_h
10 template <
typename F,
typename X = no_var>
34 template <
typename Integrator,
typename F,
typename X = no_var>
54 template <
typename Integrator,
typename F>
64 template <
typename F,
typename X = no_var>
69 template <
typename X,
typename F>
74 template <
typename X,
typename F,
typename Integrator>
79 template <
typename F,
typename Integrator>
84 template <
typename X,
typename F>
86 return integral<X>(
f)(
min,
max);
89 template <
typename X,
typename F,
typename Integrator>
91 return integral<X>(
f, integrator)(
min,
max);
104 template <
typename F,
typename Integrator>
109 template <
typename F,
typename MIN,
typename MAX,
typename Integrator = no_var,
typename X = no_var>
122 template <
typename F,
typename MIN,
typename MAX,
typename X>
133 template <
typename F,
typename MIN,
typename MAX,
typename Integrator>
146 template <
typename F,
typename MIN,
typename MAX>
159 #define NUMERICAL_INTEGRAL(X, F, INTEGRATOR) \
161 template <typename X> \
162 struct Integral<F, X> { \
163 typedef NumericalIntegral<INTEGRATOR, F, X> type; \
166 struct __useless_ignoreme
168 #define NUMERICAL_FUNCT_INTEGRAL(F, INTEGRATOR) \
171 struct Integral<F, no_var> { \
172 typedef NumericalIntegral<INTEGRATOR, F> type; \
175 struct __useless_ignoreme
double operator()(double min, double max) const
double operator()(double x) const
double operator()(double x) const
double operator()(double min, double max) const
Integral< F >::type integral_f(const F &f, const Integrator &integrator)
double operator()(double x) const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
NumericalIntegral(const F &f, const Integrator &integrator)
Integral< F, X >::type integral(const F &f)
DefIntegral(const F &f, const MIN &min, const MAX &max, const Integrator &integrator)
DefIntegral(const F &f, const MIN &min, const MAX &max)
IntegralStruct< F, X > type
IntegralStruct(const F &f)
IntegralStruct(const F &f)
double operator()() const
DefIntegral(const F &f, const MIN &min, const MAX &max, const Integrator &integrator)
Primitive< F, X >::type primitive(const F &f)
static void set(const double &x)
double operator()(double x) const
Primitive< F, X >::type p
DefIntegral(const F &f, const MIN &min, const MAX &max)
double operator()(double min, double max) const
NumericalIntegral(const F &f, const Integrator &integrator)
double operator()(double min, double max) const