Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Data Fields | Protected Attributes
multi_inte< func_t, vec_t > Class Template Reference

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

#include <multi_inte.h>

Inheritance diagram for multi_inte< func_t, vec_t >:
composite_inte< func_t, vec_t, alloc_vec_t, alloc_t > mcarlo_inte< func_t, rng_t, vec_t > gsl_miser< func_t, rng_t, vec_t, alloc_vec_t, alloc_t > gsl_monte< func_t, rng_t, vec_t, alloc_vec_t, alloc_t > gsl_vegas< func_t, rng_t, vec_t, alloc_vec_t, alloc_t >

Detailed Description

template<class func_t, class vec_t = ovector_base>
class multi_inte< func_t, vec_t >

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 40 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)
 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, double &res, double &err)=0
 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

bool err_nonconv
 If true, call the error handler if the routine does not "converge".
int verbose
 Verbosity.
double tol_rel
 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

template<class func_t, class vec_t = ovector_base>
virtual double multi_inte< func_t, vec_t >::minteg ( func_t &  func,
size_t  ndim,
const vec_t &  a,
const vec_t &  b 
) [inline, virtual]
template<class func_t, class vec_t = ovector_base>
double multi_inte< func_t, vec_t >::get_error ( ) [inline]

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

Definition at line 94 of file multi_inte.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.