_fft_small_plan_set_window, _fft_small_plan_set_window_nmod
#include <flint/fft_small.h>void _fft_small_plan_set_window(fft_small_plan_t P, ulong zl, ulong zh, ulong zn, ulong xtrunc_max, ulong min_depth)sourcevoid _fft_small_plan_set_window_nmod(fft_small_plan_t P, ulong zl, ulong zh, ulong zn, ulong xtrunc_max)sourceChoose the depth and truncation for the window of a convolution of length with operands of truncated length at most xtrunc_max, and record the window. Require .
With : if xtrunc_max , and , the transform has length with = min_depth and wraps around. Otherwise the depth is and the truncation rounded up to a multiple of 256 (or the full length below 256). The four extra coefficients cover the bias digits of signed integer exports; the nmod version omits them and uses . Both set bits to 0. Use min_depth = 8 for plans whose conversions work on whole blocks.
The FLINT team, “_fft_small_plan_set_window, _fft_small_plan_set_window_nmod (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/_fft_small_plan_set_window.html (generated 2026-11-02).
@misc{flint-doc-fft-small-fft-small-plan-set-window,
author = {{The FLINT team}},
title = {{\_fft\_small\_plan\_set\_window, \_fft\_small\_plan\_set\_window\_nmod (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/_fft_small_plan_set_window.html},
note = {Generated 2026-11-02}
}