Skip to main content

Module number_theoretic_transform

Module number_theoretic_transform 

Source

Modulesยง

ntt_simd ๐Ÿ”’

Macrosยง

impl_ntt_modulus ๐Ÿ”’

Structsยง

Convolve
NttInfo

Constantsยง

BIT_REVERSE ๐Ÿ”’
LAZY_THRESHOLD ๐Ÿ”’

Traitsยง

Montgomery32NttModulus
NttReuse

Functionsยง

add_scalar ๐Ÿ”’
batch_ntt_simd_backend ๐Ÿ”’
convert_crt_input ๐Ÿ”’
convolve_karatsuba ๐Ÿ”’
convolve_large_ntt ๐Ÿ”’
convolve_mint_crt ๐Ÿ”’
convolve_naive ๐Ÿ”’
convolve_u64_fft ๐Ÿ”’
convolve_u64_fft_scalar ๐Ÿ”’
intt ๐Ÿ”’
intt_batch ๐Ÿ”’
intt_batch_scalar ๐Ÿ”’
intt_rows ๐Ÿ”’
intt_scalar ๐Ÿ”’
mod_mul ๐Ÿ”’
mod_pow ๐Ÿ”’
mul_scalar ๐Ÿ”’
ntt ๐Ÿ”’
ntt_batch ๐Ÿ”’
ntt_batch_scalar ๐Ÿ”’
ntt_rows ๐Ÿ”’
ntt_scalar ๐Ÿ”’
pointwise_multiply ๐Ÿ”’
pointwise_multiply_add ๐Ÿ”’
reconstruct_mint_crt ๐Ÿ”’
reduce ๐Ÿ”’
sub_scalar ๐Ÿ”’
use_block_ntt ๐Ÿ”’

Type Aliasesยง

Convolve998244353
MIntConvolve
Raw transforms require each integer coefficient reconstructed by CRT to be below the product of the three NTT moduli. convolve splits products exceeding this bound.
MVec ๐Ÿ”’
U64Convolve
Convolution modulo 2^64. Multiply only freshly transformed operands; reconstruct and transform again before multiplying another factor.