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:
NcmVectorNcmVectorof knots.The data is owned by the caller of the method. yv-
Type:
NcmVectorNcmVectorof the values of the function, to be interpolated, computed atxv.The data is owned by the caller of the method. init-
Type:
const gbooleanTRUE to prepare the new
NcmSplineor 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. |