Module rns

Source
Expand description

Contains an implementation of computing convolutions by considering them modulo various primes that are either smaller or allow for suitable roots of unity.

Structsยง

CreateNTTConvolution
Function that creates an NTTConvolution when given a suitable modulus.
PreparedConvolutionOperand
A prepared convolution operand for a RNSConvolution.
RNSConvolution
A ConvolutionAlgorithm that computes convolutions by computing them modulo a suitable composite modulus q, whose factors are of a certain shape, usually such as to allow for NTT-based convolutions.
RNSConvolutionZn
Same as RNSConvolution, but computes convolutions over ZnRings.