inte Class Template Reference

Base integration class [abstract base]. More...

#include <inte.h>

Inheritance diagram for inte:

cern_adapt cern_cauchy cern_gauss cern_gauss56 gsl_inte_kronrod gsl_inte_qng gsl_inte_qag gsl_inte_singular gsl_inte_qags gsl_inte_transform gsl_inte_cheb gsl_inte_qagi gsl_inte_qagil gsl_inte_qagiu gsl_inte_qawc gsl_inte_qawo_sin gsl_inte_qaws gsl_inte_qawf_sin gsl_inte_qawo_cos gsl_inte_qawf_cos

Detailed Description

template<class param_t, class func_t = funct<param_t>>
class inte< param_t, func_t >

Base integration class [abstract base].

Definition at line 36 of file inte.h.


Public Member Functions

virtual double integ (func_t &func, double a, double b, param_t &pa)=0
 Integrate function func from a to b.
virtual int integ_err (func_t &func, double a, double b, param_t &pa, 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 error in the result from the last call to integ().
virtual const char * type ()
 Return string denoting type ("inte").

Data Fields

int verbose
 Verbosity.
int last_iter
 The most recent number of iterations taken.
double tolf
 The maximum relative uncertainty in the value of the integral (default $ 10^{-8} $).
double tolx
 The maximum absolute uncertainty in the value of the integral (default $ 10^{-8} $).
bool err_nonconv
 If true, call the error handler if the routine does not "converge".
int last_conv
 Zero if last call to integ() or integ_err() converged.

Protected Attributes

double interror
 The uncertainty for the last integration computation.

Member Function Documentation

double get_error (  )  [inline]

Return the error in the result from the last call to integ().

This will quietly return zero if no integrations have been performed.

Definition at line 94 of file inte.h.


Field Documentation

int last_conv

Zero if last call to integ() or integ_err() converged.

This is particularly useful if err_nonconv is false to test if the last integration call converged.

Definition at line 76 of file inte.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page