You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implementation of the number theoretic transform (NTT) in Rust.
The array size `n` must be a power of two.
The NTT is a DFT over Z/pZ. We use a fast divide-and conquer algorithm. The array size `n` must be a power of two.
We allow composite moduli `modulus` for prime powers `p^k` or moduli such that `n` divides `phi(p^e)` for each prime factor p, where `phi` is the Euler totient.