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)sourcevoid sd_fft_ctx_fit_depth_with_lock(sd_fft_ctx_t Q, ulong k)sourceMake 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).
@misc{flint-doc-fft-small-sd-fft-ctx-fit-depth,
author = {{The FLINT team}},
title = {{sd\_fft\_ctx\_fit\_depth, sd\_fft\_ctx\_fit\_depth\_with\_lock (fft\_small.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fft_small/sd_fft_ctx_fit_depth.html},
note = {Generated 2026-10-20}
}