Generalized multi-dimensional integration [abstract base]. More...
#include <inte_gen.h>
Public Member Functions | |
virtual double | ginteg (func_t &func, size_t ndim, lfunc_t &a, ufunc_t &b)=0 |
Integrate function func from ![]() ![]() ![]() | |
virtual int | ginteg_err (func_t &func, size_t ndim, lfunc_t &a, ufunc_t &b, double &res, double &err) |
Integrate function func from ![]() ![]() ![]() | |
double | get_error () |
Return the error in the result from the last call to ginteg() or ginteg_err() More... | |
const char * | type () |
Return string denoting type ("inte_gen") | |
Public Attributes | |
int | verbose |
Verbosity. | |
double | tol_rel |
The maximum "uncertainty" in the value of the integral. | |
bool | err_nonconv |
If true, call the error handler if the routine does not "converge". | |
Protected Attributes | |
double | interror |
The uncertainty for the last integration computation. | |
Perform the generalized multi-dimensional integral:
The functions and
are specified in the arguments
a
and b
to the function ginteg() or ginteg_err() .
In order to allow the user to specify only three functions (for the integrand, the lower limits, and the upper limits) the first argument to the limit and integrand functions is used to distinguish among the limits for each separate integral. So first argument to a
for is 0, and the first argument to
a
for is 1, etc., and similarly for the upper limits specified in
b
and the integrands specified in func
.
Definition at line 64 of file inte_gen.h.
|
inline |
This will quietly return zero if no integrations have been performed.
Definition at line 110 of file inte_gen.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).