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 NcmSplineVec is invalidated by subsequent calls to this function or ncm_function_sample_set_to_spline_vec() on the same fss object.
  • If you need to keep multiple NcmSplineVec objects from the same sample set, you must call ncm_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: NcmSpline

A NcmSpline to 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.