Method

NumCosmoMathSplineset_data_static

Declaration [src]

void
ncm_spline_set_data_static (
  NcmSpline* s,
  gdouble* x,
  gdouble* y,
  gsize len,
  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: gdouble*

Array of knots.

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

Type: gdouble*

Array of the values of the function, to be interpolated, computed at x.

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

Type: gsize

Length of x and y.

init

Type: gboolean

TRUE to prepare s or FALSE to not prepare it.