Method
NumCosmoMathSpline2dnew
Declaration [src]
NcmSpline2d*
ncm_spline2d_new (
const NcmSpline2d* s2d,
NcmVector* xv,
NcmVector* yv,
NcmMatrix* zm,
gboolean init
)
Description [src]
This function returns a new NcmSpline2d, where the knots of this new spline are given
in the NcmVector xv and yv. The values of the function, at those knots, to be interpolated are
given in the NcmMatrix zm.
Parameters
xv-
Type:
NcmVectorNcmVectorof knots.The data is owned by the caller of the method. yv-
Type:
NcmVectorNcmVectorof knots.The data is owned by the caller of the method. zm-
Type:
NcmMatrixNcmMatrixof the values of the function, to be interpolated, computed atxvandyv.The data is owned by the caller of the method. init-
Type:
gbooleanTRUE to prepare the new
NcmSpline2dor FALSE to not prepare it.
Return value
Type: NcmSpline2d
A new NcmSpline2d.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |