Method
NumCosmoMathSplinenew_array
Declaration [src]
NcmSpline*
ncm_spline_new_array (
const NcmSpline* s,
GArray* x,
GArray* y,
const gboolean init
)
Description [src]
This function returns a new NcmSpline, where the knots of this new spline are given
in the GArray x and the values of the function, at those knots, to be interpolated are
given in the GArray y.
Parameters
x-
Type: An array of
doubleGArray of knots.
The data is owned by the caller of the method. y-
Type: An array of
doubleGArray of the values of the function, to be interpolated, computed at
x.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. |