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 NcmSplineVec is invalidated by subsequent calls to this function or ncm_function_sample_set_to_spline_vec_old() 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.

The sample set itself is not modified and can continue to be used for further 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.