FLINT3.7.0-dev

GR_DFT_ALG_AUTO, GR_DFT_ALG_NAIVE, GR_DFT_ALG_CT, GR_DFT_ALG_BAILEY, GR_DFT_ALG_SPLIT, GR_DFT_ALG_PFA, GR_DFT_ALG_MIXED, GR_DFT_ALG_BLUESTEIN

Synopsis#include <flint/gr_dft.h>
GR_DFT_ALG_AUTOsource
GR_DFT_ALG_NAIVEsource
GR_DFT_ALG_CTsource
GR_DFT_ALG_BAILEYsource
GR_DFT_ALG_SPLITsource
GR_DFT_ALG_PFAsource
GR_DFT_ALG_MIXEDsource
GR_DFT_ALG_BLUESTEINsource

Values 0 to 7 of the alg argument of the plan constructors: automatic choice, the O(n^2) definition, radix-2 Cooley–Tukey, the four-step algorithm and split-radix (these three for powers of two), the Good–Thomas prime factor algorithm (for lengths with at least two distinct prime factors), mixed-radix Cooley–Tukey (any n \ge 2) and Bluestein's algorithm (odd n \ge 3).

GR_DFT_ALG_AUTO chooses split-radix for powers of two in complex mode (see gr_dft_precomp_init_karatsuba) and radix-2 Cooley–Tukey otherwise, the prime factor algorithm when n has at least two distinct prime factors, and mixed-radix for powers of an odd prime p. For p > 19, mixed-radix computes the transforms of length p with a Bluestein sub-plan when the ring allows it; see Algorithms, complex mode and threads.

Guides#

Cite this page

The FLINT team, “GR_DFT_ALG_AUTO, GR_DFT_ALG_NAIVE, GR_DFT_ALG_CT, GR_DFT_ALG_BAILEY, GR_DFT_ALG_SPLIT, GR_DFT_ALG_PFA, GR_DFT_ALG_MIXED, GR_DFT_ALG_BLUESTEIN (gr_dft.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_dft/GR_DFT_ALG_AUTO.html (generated 2026-10-20).