Method
NumCosmoMathFunctionSampleSetto_spline_vec
Declaration [src]
NcmSplineVec*
ncm_function_sample_set_to_spline_vec (
NcmFunctionSampleSet* fss,
NcmSpline* base_spline
)
Description [src]
Converts the sample set to a NcmSplineVec. This reuses cached internal arrays for
efficiency, which means that:
- The returned
NcmSplineVecis invalidated by subsequent calls to this function orncm_function_sample_set_to_spline_vec_old()on the samefssobject. - If you need to keep multiple
NcmSplineVecobjects from the same sample set, you must callncm_spline_vec_dup()on the returned object before calling this function again.
The sample set itself is not modified and can continue to be used for further refinement.
Parameters
base_spline-
Type:
NcmSplineA
NcmSplineto use as the base spline type.The data is owned by the caller of the method.
Return value
Type: NcmSplineVec
A new NcmSplineVec containing the interpolated function.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |