fixed automorphism for ring and added test

This commit is contained in:
Jean-Philippe Bossuat
2025-01-08 15:24:21 +01:00
parent e4c19a163e
commit c1ed2e38fa
8 changed files with 163 additions and 37 deletions

View File

@@ -16,7 +16,7 @@ impl Ring<u64> {
Self {
n: n,
modulus: prime.clone(),
dft: Box::new(Table::<u64>::new(prime, (2 * n) as u64)),
dft: Box::new(Table::<u64>::new(prime, n << 1)),
}
}