10 releases
0.1.9 | Feb 17, 2025 |
---|---|
0.1.8 | Feb 17, 2025 |
0.1.2 | Jan 28, 2025 |
#732 in Math
1,029 downloads per month
Used in 2 crates
18KB
254 lines
ntt
Implementation of the number theoretic transform (NTT) in Rust.
The NTT is a DFT over the ring Z/mZ. We use a fast divide-and conquer algorithm. The array size n
must be a power of two.
We allow composite moduli as long as n
divides phi(p^e)
for each prime factor p of the modulus, where phi
is the Euler totient.
Dependencies
~2MB
~44K SLoC