Constructor
NumCosmoMathSplineCubicD2new
Declaration [src]
NcmSplineCubicD2*
ncm_spline_cubic_d2_new (
NcmVector* xv,
NcmVector* yv,
NcmVector* d2yv,
gboolean init
)
Description [src]
This function returns a new NcmSpline setting all its members.
It makes a copy of the d2yv vector and saves it internally.
Parameters
xv-
Type:
NcmVectorNcmVectorof knots.The data is owned by the caller of the function. yv-
Type:
NcmVectorNcmVectorof the values of the function to be interpolated, computed atxv.The data is owned by the caller of the function. d2yv-
Type:
NcmVectorNcmVectorof the values of the second derivative of the function to be interpolated, computed atxv.The data is owned by the caller of the function. init-
Type:
gbooleanTRUE to prepare the new
NcmSplineor FALSE to not prepare it.
Return value
Type: NcmSplineCubicD2
A new NcmSpline.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |