Constructor

NumCosmoMathSplineCubicD2new

Declaration [src]

NcmSplineCubicD2*
ncm_spline_cubic_d2_new (
  NcmVector* xv,
  NcmVector* yv,
  NcmVector* d2yv,
  gboolean init
)

Description [src]

This function returns a new NcmSpline setting all its members. It makes a copy of the d2yv vector and saves it internally.

Parameters

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.
d2yv

Type: NcmVector

NcmVector of the values of the second derivative 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: NcmSplineCubicD2

A new NcmSpline.

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