![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Generalized multi-dimensional integration [abstract base]. More...
#include <gen_inte.h>
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
.
At present, the only implementation of this abstract base is in comp_gen_inte .
Definition at line 62 of file gen_inte.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() | |
const char * | type () |
Return string denoting type ("gen_inte") | |
Data Fields | |
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. |
double gen_inte< func_t, lfunc_t, ufunc_t, vec_t >::get_error | ( | ) | [inline] |
This will quietly return zero if no integrations have been performed.
Definition at line 108 of file gen_inte.h.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).