sd_fft_ctx_w, sd_fft_ctx_w2, sd_fft_ctx_w2inv
Synopsis
#include <flint/fft_small.h>double sd_fft_ctx_w(const sd_fft_ctx_t Q, ulong j)sourcedouble sd_fft_ctx_w2(const sd_fft_ctx_t Q, ulong j)sourcedouble sd_fft_ctx_w2inv(const sd_fft_ctx_t Q, ulong j)sourceReturn the root of unity , , and modulo , as integers in . Here and, for , where is a primitive -th root of unity and is with its bits reversed; the roots for different are chosen compatibly, . The tables must cover the index.
So , and the first of them are the -th roots of unity in bit-reversed order. Since , only even indices are stored.
Cite this page
The FLINT team, “sd_fft_ctx_w, sd_fft_ctx_w2, sd_fft_ctx_w2inv (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_w.html (generated 2026-11-02).
@misc{flint-doc-fft-small-sd-fft-ctx-w,
author = {{The FLINT team}},
title = {{sd\_fft\_ctx\_w, sd\_fft\_ctx\_w2, sd\_fft\_ctx\_w2inv (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_w.html},
note = {Generated 2026-11-02}
}