Constructor

NumCosmoMathSplineVecnew_gpa

Declaration [src]

NcmSplineVec*
ncm_spline_vec_new_gpa (
  const NcmSpline* s,
  NcmVector* xv,
  GPtrArray* yv,
  const gboolean init
)

Description [src]

Creates a new NcmSplineVec from a GPtrArray of y-vectors. Each element of yv 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.
yv

Type: An array of NcmVector*

A GPtrArray of NcmVector containing the y-coordinates for each 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.