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:
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. ym-
Type:
NcmMatrixA
NcmMatrixwhere each row is a y-vector for a 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. |