FLINT3.7.0-dev

sd_fft_ctx_fit_depth, sd_fft_ctx_fit_depth_with_lock

Synopsis#include <flint/fft_small.h>
void sd_fft_ctx_fit_depth(sd_fft_ctx_t Q, ulong depth)source
void sd_fft_ctx_fit_depth_with_lock(sd_fft_ctx_t Q, ulong k)source

Make sure that the twiddle tables cover transforms of length 2^{\mathtt{depth}}, filling the missing tables under the context's mutex. Throw if 2^{\mathtt{depth}} \nmid p - 1. sd_fft_trunc and sd_ifft_trunc call this themselves.

Cite this page

The FLINT team, “sd_fft_ctx_fit_depth, sd_fft_ctx_fit_depth_with_lock (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/sd_fft_ctx_fit_depth.html (generated 2026-10-20).