Constructor

NumCosmoMathSplineVecnew

Declaration [src]

NcmSplineVec*
ncm_spline_vec_new (
  const NcmSpline* s,
  NcmVector* xv,
  NcmMatrix* ym,
  const gboolean init
)

Description [src]

Creates a new NcmSplineVec from a matrix of y-values. Each row of ym corresponds to one component of the vector function. All components share the same x-vector xv.

Parameters

s

Type: NcmSpline

A NcmSpline.

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

Type: NcmVector

A NcmVector containing the x-coordinates.

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

Type: NcmMatrix

A NcmMatrix where each row is a y-vector for a component.

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

Type: const gboolean

Whether to initialize the splines immediately.

Return value

Type: NcmSplineVec

A new NcmSplineVec.

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