Method

NumCosmoMathSplinenew

Declaration [src]

NcmSpline*
ncm_spline_new (
  const NcmSpline* s,
  NcmVector* xv,
  NcmVector* yv,
  const gboolean init
)

Description [src]

This function returns a new NcmSpline, where the knots of this new spline are given in the NcmVector xv and the values of the function, at those knots, to be interpolated are given in the NcmVector yv.

Parameters

xv

Type: NcmVector

NcmVector of knots.

The data is owned by the caller of the method.
yv

Type: NcmVector

NcmVector of the values of the function, to be interpolated, computed at xv.

The data is owned by the caller of the method.
init

Type: const gboolean

TRUE to prepare the new NcmSpline or FALSE to not prepare it.

Return value

Type: NcmSpline

A new NcmSpline.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.