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 double

GArray of knots.

The data is owned by the caller of the method.
y

Type: An array of double

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

TRUE to prepare the new NcmSpline or 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.