fft_small_plan_init_nmod
#include <flint/fft_small.h>int fft_small_plan_init_nmod(fft_small_plan_t P, mpn_ctx_t R, ulong zl, ulong zh, ulong zn, ulong xtrunc_max, ulong len_bound, ulong prod_bits, nmod_t mod, ulong direct_len)sourceInitialises P for computing the coefficients of convolutions of length over in which at most len_bound products, each less than , accumulate in one coefficient. Returns 0 if more than eight primes would be needed. Requires .
xtrunc_max bounds the operand lengths, rounded up to a multiple of 256. For a product of lengths and , take len_bound and prod_bits ; for a sum of products, len_bound . Unreduced inputs, such as sums of operands formed in transform space, are accounted for by increasing prod_bits. If for a power of two that is at least and the operand lengths, the transform has length and the excess coefficients wrap around below . If mod.n is a context prime, one prime is used without Chinese remaindering. If direct_len is at least 100, has at least 20 bits, and is prime, the transform is done modulo itself; pass 0 to disable this.
Guides#
The FLINT team, “fft_small_plan_init_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_init_nmod.html (generated 2026-11-02).
@misc{flint-doc-fft-small-fft-small-plan-init-nmod,
author = {{The FLINT team}},
title = {{fft\_small\_plan\_init\_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_init_nmod.html},
note = {Generated 2026-11-02}
}