Method
NumCosmoMathFunctionSampleSetto_spline_vec_old
Declaration [src]
NcmSplineVec*
ncm_function_sample_set_to_spline_vec_old (
NcmFunctionSampleSet* fss,
NcmSpline* base_spline
)
Description [src]
Converts only the OLD sample points 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()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.
This creates arrays from the samples where new_point is FALSE. The sample set is not modified. This is useful for building a spline to test against NEW points during 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. |