Base integration class [abstract base].
More...
#include <inte.h>
template<class func_t = funct>
class o2scl::inte< func_t >
- Idea for Future:
- It might be useful to have all of the integration classes report the number of function evaluations used in addition to the number of iterations which were taken
Definition at line 44 of file inte.h.
|
virtual double | integ (func_t &func, double a, double b) |
| Integrate function func from a to b .
|
|
virtual int | integ_err (func_t &func, double a, double b, double &res, double &err)=0 |
| Integrate function func from a to b and place the result in res and the error in err .
|
|
double | get_error () |
| Return the numerically estimated error in the result from the last call to integ() More...
|
|
virtual const char * | type () |
| Return string denoting type ("inte")
|
|
|
int | verbose |
| Verbosity.
|
|
size_t | last_iter |
| The most recent number of iterations taken.
|
|
double | tol_rel |
| The maximum relative uncertainty in the value of the integral (default )
|
|
double | tol_abs |
| The maximum absolute uncertainty in the value of the integral (default )
|
|
bool | err_nonconv |
| If true, call the error handler if the routine does not converge or reach the desired tolerance (default true) More...
|
|
|
double | interror |
| The uncertainty for the last integration computation.
|
|
◆ get_error()
template<class func_t = funct>
This will quietly return zero if no integrations have been performed or if the integrator does not estimate the error.
Definition at line 107 of file inte.h.
◆ err_nonconv
template<class func_t = funct>
If this is false, the function proceeds normally and may provide convergence information in the integer return value.
Definition at line 81 of file inte.h.
The documentation for this class was generated from the following file:
- /home/awsteiner/wcs/o2scl/src/inte/inte.h