Method

NumCosmoMathLaurentSeriesreset

Declaration [src]

void
ncm_laurent_series_reset (
  NcmLaurentSeries* a,
  gint hmin,
  gint hmax
)

Description [src]

Resizes a in place to harmonics $h\in[hmin,hmax]$, zeroing every coefficient. Grow-only: reuses as existing buffer (no allocation) when it is already big enough, reallocates bigger otherwise — never shrinks the underlying allocation. Lets a hot loop reuse one NcmLaurentSeries across many calls instead of allocating fresh every time (see nc_galaxy_shape_factor_series_lensed.c).

This method is not directly available to language bindings.

Parameters

hmin

Type: gint

New lowest harmonic.

hmax

Type: gint

New highest harmonic.