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:
NcmSplineA
NcmSpline.The data is owned by the caller of the function. xv-
Type:
NcmVectorA
NcmVectorcontaining the x-coordinates.The data is owned by the caller of the function. yv-
Type: An array of
NcmVector*A
GPtrArrayofNcmVectorcontaining the y-coordinates for each component.The data is owned by the caller of the function. init-
Type:
const gbooleanWhether 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. |