Function

NumCosmoMathIntegralNDF

Declaration

void
(* NcmIntegralNDF) (
  NcmIntegralND* intnd,
  NcmVector* x,
  guint dim,
  guint npoints,
  guint fdim,
  NcmVector* fval
)

Description [src]

The type of the function that must be implemented by a subclass of NcmIntegralND.

This function receives npoints points in the array x (size dim * npoints), and returns an array (size fdim * npoints) of npoints values of the integrand at all points in x. The x is an array of doubles in row-major order (i.e. the first dim elements of x are the coordinates of the first point, the next dim elements are the coordinates of the second point, and so on). The return value is an array of fdim values of the integrand at all points in x (e.g. the first fdim elements are the values of the integrand at the first point, the next fdim elements are the values of the integrand at the second point, and so on).

Parameters

intnd

Type: NcmIntegralND

A NcmIntegralND.

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

Type: NcmVector

A NcmVector containing the value of the variable of integration.

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

Type: guint

The dimension of the integral argument.

npoints

Type: guint

The number of points in the array x.

fdim

Type: guint

The dimension of the function to be integrated.

fval

Type: NcmVector

A NcmVector containing the fdim values of the integrand at all points in x.

The data is owned by the caller of the function.