Method

NumCosmoMathSplineset

Declaration [src]

NcmSpline*
ncm_spline_set (
  NcmSpline* s,
  NcmVector* xv,
  NcmVector* yv,
  gboolean init
)

Description [src]

This function sets both xv and yv vectors to s. The two vectors must have the same length.

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: gboolean

TRUE to prepare s or FALSE to not prepare it.

Return value

Type: NcmSpline

A NcmSpline.

The returned data is owned by the instance.