Fixed gadget product & added noise estimations

This commit is contained in:
Jean-Philippe Bossuat
2025-02-24 08:31:02 +01:00
parent 014bf0c2d1
commit 26c2bcbc05
24 changed files with 762 additions and 473 deletions

View File

@@ -42,6 +42,9 @@ pub trait VecZnxApi {
/// Zeroes the backing array.
fn zero(&mut self);
/// Normalization: propagates carry and ensures each coefficients
/// falls into the range [-2^{K-1}, 2^{K-1}].
fn normalize(&mut self, log_base2k: usize, carry: &mut [u8]);
/// Right shifts the coefficients by k bits.