multi_inte Class Template Reference

#include <multi_inte.h>

Inheritance diagram for multi_inte:

composite_inte mcarlo_inte gsl_miser gsl_monte gsl_vegas

Detailed Description

template<class param_t, class func_t, class vec_t = ovector_view>
class multi_inte< param_t, func_t, vec_t >

Multi-dimensional integration over a hypercube [abstract base].

Multi-dimensional integration over a region defined by constant limits. For more general regions of integration, use children of the class gen_inte.

Definition at line 42 of file multi_inte.h.


Public Member Functions

virtual double minteg (func_t &func, size_t ndim, const vec_t &a, const vec_t &b, param_t &pa)=0
 Integrate function func over the hypercube from $ x_i=a_i $ to $ x_i=b_i $ for $ 0<i< $ ndim-1.
virtual int minteg_err (func_t &func, size_t ndim, const vec_t &a, const vec_t &b, param_t &pa, double &res, double &err)
 Integrate function func over the hypercube from $ x_i=a_i $ to $ x_i=b_i $ for $ 0<i< $ ndim-1.
double get_error ()
 Return the error in the result from the last call to minteg() or minteg_err().
const char * type ()
 Return string denoting type ("multi_inte").

Data Fields

int verbose
 Verbosity.
double tolf
 The maximum "uncertainty" in the value of the integral (default $ 10^{-8} $).

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 minteg() or minteg_err().

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

Definition at line 92 of file multi_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