Expand description
§NTT Context — Forward and Inverse Transforms
High-performance Number Theoretic Transform using the Longa-Naehrig ordering (SEAL/OpenFHE style) with integrated negacyclic twiddle factors.
§Algorithms
- Forward NTT — Cooley-Tukey radix-2 DIT (Decimation In Time)
- Inverse NTT — Gentleman-Sande radix-2 DIF (Decimation In Frequency)
- Tiled NTT — Four-step variant for improved cache locality on large N
Structs§
- Ntt64
Context - Precomputed NTT context for a given (N, modulus) pair.
Functions§
- ntt_
forward - Forward NTT in-place (negacyclic convolution, Longa-Naehrig ordering).
- ntt_
forward_ tiled - Four-step tiled forward NTT for improved cache locality.
- ntt_
inverse - Inverse NTT in-place (negacyclic convolution, Longa-Naehrig ordering).