Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] advh_v1_0.tar.gz(128 Kbytes)
Manuscript Title: CUBA - a library for multidimensional numerical integration
Authors: T. Hahn
Program title: CUBA
Catalogue identifier: ADVH_v1_0
Distribution format: tar.gz
Journal reference: Comput. Phys. Commun. 168(2005)78
Programming language: C.
Computer: Designed for: all platforms with an ISO C99 C compiler.
Tested on: x86 (Linux/gcc), Alpha (Tru64 Unix/gcc).
Operating system: Linux, Tru64 Unix.
RAM: 1M words
Word size: 8 bits
Keywords: Multidimensional numerical integration, Monte Carlo methods, Cubature rules, Variance reduction.
PACS: 02.60.Jh, 02.70.Uu.
Classification: 4.11.

Nature of problem:
Multidimensional numerical integrations, e.g. of phase spaces.

Solution method:
The Cuba library contains the four algorithms Vegas, Suave, Divonne, and Cuhre with the following characteristics:

Routine Basic integration method Algorithm typeVariance reduction
Vegas Sobol quasi-random sample Monte Carlo importance sampling
Suave Sobol quasi-random sample Monte Carlo globally adaptive subdivision
Divonne Korobov quasi-random sample Monte Carlostratified sampling
or Sobol quasi-random sample Monte Carlo aided by methods from
or cubature rules deterministic numerical optimisation
Cuhrecubature rules deterministicglobally adaptive subdivision

Unusual features:
Coherent interface in Fortran, C/C++, and Mathematica. Can integrate vector integrands.

Running time:
Varies greatly depending on the integrand and the chosen accuracy. Can range from seconds to days.