fft_small_fft_nmod
Synopsis
#include <flint/fft_small.h>void fft_small_fft_nmod(fft_small_op_t X, const ulong * a, ulong an, ulong itrunc, nmod_t mod, const fft_small_plan_t P)sourceSets X to the forward transform of , a polynomial over with reduced coefficients, read as zero-padded to length itrunc. Requires itrunc to be a multiple of 8 and at most P->ztrunc; normally itrunc is rounded up to a multiple of 256, or if the depth is less than 8.
If exceeds itrunc, the polynomial is reduced modulo , which is meaningful only for cyclic plans with itrunc . The primes are transformed in parallel from .
Guides#
Cite this page
The FLINT team, “fft_small_fft_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_fft_nmod.html (generated 2026-11-02).
@misc{flint-doc-fft-small-fft-small-fft-nmod,
author = {{The FLINT team}},
title = {{fft\_small\_fft\_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_fft_nmod.html},
note = {Generated 2026-11-02}
}