Method

NumCosmoMathSplineVecinteg

Declaration [src]

void
ncm_spline_vec_integ (
  NcmSplineVec* sv,
  const gdouble xi,
  const gdouble xf,
  NcmVector* res
)

Description [src]

Evaluates the integral of the vector function from xi to xf. Uses index lookups for both endpoints followed by index-based integration for all components.

The vector res must have length equal to the number of components.

Parameters

xi

Type: const gdouble

Initial x-coordinate.

xf

Type: const gdouble

Final x-coordinate.

res

Type: NcmVector

A NcmVector to store the result.

The data is owned by the caller of the method.