Function

NumCosmoMathintegrate_3dim_vegas

Declaration [src]

gboolean
ncm_integrate_3dim_vegas (
  NcmIntegrand3dim* integ,
  gdouble xi,
  gdouble yi,
  gdouble zi,
  gdouble xf,
  gdouble yf,
  gdouble zf,
  gdouble epsrel,
  gdouble epsabs,
  const gint nstart,
  gdouble* result,
  gdouble* error
)

Description [src]

This function computes the integral of the function integ->f over the interval [xi, xf] and [yi, yf] and [zi, zf] using the Vegas algorithm from the Cuba library.

Parameters

integ

Type: NcmIntegrand3dim

A pointer to NcmIntegrand3dim.

The data is owned by the caller of the function.
xi

Type: gdouble

Gbouble which is the lower integration limit of variable x.

yi

Type: gdouble

Gbouble which is the lower integration limit of variable y.

zi

Type: gdouble

Gbouble which is the lower integration limit of variable z.

xf

Type: gdouble

Gbouble which is the upper integration limit of variable x.

yf

Type: gdouble

Gbouble which is the upper integration limit of variable y.

zf

Type: gdouble

Gbouble which is the upper integration limit of variable z.

epsrel

Type: gdouble

Relative error.

epsabs

Type: gdouble

Absolute error.

nstart

Type: const gint

Number of samples to start the first round of integration with.

result

Type: gdouble*

A pointer to a gdouble in which the function stores the result.

The data is owned by the caller of the function.
error

Type: gdouble*

A pointer to a gdouble in which the function stores the estimated error.

The data is owned by the caller of the function.

Return value

Type: gboolean

Whether the integration was successful.