Go to the documentation of this file.
23 #ifndef O2SCL_INTE_KRONROD_BOOST_H
24 #define O2SCL_INTE_KRONROD_BOOST_H
32 #ifdef O2SCL_NEW_BOOST_INTEGRATION
33 #include <boost/math/quadrature/gauss_kronrod.hpp>
36 #include <o2scl/inte.h>
38 #ifndef DOXYGEN_NO_O2NS
58 template<
class func_t=funct,
size_t rule=15,
class fp_t=
double>
60 public inte<func_t,fp_t> {
79 void set_max_depth(
size_t md) {
88 fp_t &res, fp_t &err) {
89 res=boost::math::quadrature::gauss_kronrod<fp_t,rule>::integrate
100 #ifndef DOXYGEN_NO_O2NS
@ exc_efailed
generic failure
#define O2SCL_ERR2(d, d2, n)
Set an error, two-string version.
Gauss-Kronrod integration class (Boost)
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
size_t max_depth
Maximum depth.
double tol_rel
The maximum relative uncertainty in the value of the integral (default )
Base integration class [abstract base].
virtual int integ_err(func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err)
Integrate function func from a to b and place the result in res and the error in err.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).