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:
NcmIntegralNDA
NcmIntegralND.The data is owned by the caller of the function. x-
Type:
NcmVectorA
NcmVectorcontaining the value of the variable of integration.The data is owned by the caller of the function. dim-
Type:
guintThe dimension of the integral argument.
npoints-
Type:
guintThe number of points in the array
x. fdim-
Type:
guintThe dimension of the function to be integrated.
fval-
Type:
NcmVectorA
NcmVectorcontaining thefdimvalues of the integrand at all points inx.The data is owned by the caller of the function.