Method

NumCosmoMathSplineset_array

Declaration [src]

void
ncm_spline_set_array (
  NcmSpline* s,
  GArray* x,
  GArray* y,
  gboolean init
)

Description [src]

This function sets x as the knot vector and y as the function values vector of the spline.

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

TRUE to prepare s or FALSE to not prepare it.