Constructor

NumCosmoMathSplineGslnew_full_by_id

Declaration [src]

NcmSplineGsl*
ncm_spline_gsl_new_full_by_id (
  NcmSplineGslType type_id,
  NcmVector* xv,
  NcmVector* yv,
  gboolean init
)

Description [src]

This function returns a new gsl NcmSplineGsl setting all its members.

Parameters

type_id

Type: NcmSplineGslType

Gsl interpolation method id.

xv

Type: NcmVector

NcmVector of knots.

The data is owned by the caller of the function.
yv

Type: NcmVector

NcmVector of the values of the function, to be interpolated, computed at xv.

The data is owned by the caller of the function.
init

Type: gboolean

TRUE to prepare the new NcmSpline or FALSE to not prepare it.

Return value

Type: NcmSplineGsl

A new NcmSplineGsl.

The caller of the function takes ownership of the data, and is responsible for freeing it.