Method

NumCosmoMathSpline2dnew

Declaration [src]

NcmSpline2d*
ncm_spline2d_new (
  const NcmSpline2d* s2d,
  NcmVector* xv,
  NcmVector* yv,
  NcmMatrix* zm,
  gboolean init
)

Description [src]

This function returns a new NcmSpline2d, where the knots of this new spline are given in the NcmVector xv and yv. The values of the function, at those knots, to be interpolated are given in the NcmMatrix zm.

Parameters

xv

Type: NcmVector

NcmVector of knots.

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

Type: NcmVector

NcmVector of knots.

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

Type: NcmMatrix

NcmMatrix of the values of the function, to be interpolated, computed at xv and yv.

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

Type: gboolean

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

Return value

Type: NcmSpline2d

A new NcmSpline2d.

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