Ref. + AVX code & generic tests + benches (#85)

This commit is contained in:
Jean-Philippe Bossuat
2025-09-15 16:16:11 +02:00
committed by GitHub
parent 99b9e3e10e
commit 56dbd29c59
286 changed files with 27797 additions and 7270 deletions

View File

@@ -48,8 +48,8 @@ impl<D: DataMut> Reset for GLWECiphertextCompressed<D> {
}
impl<D: DataMut> FillUniform for GLWECiphertextCompressed<D> {
fn fill_uniform(&mut self, source: &mut Source) {
self.data.fill_uniform(source);
fn fill_uniform(&mut self, log_bound: usize, source: &mut Source) {
self.data.fill_uniform(log_bound, source);
}
}
@@ -160,7 +160,8 @@ impl<D: DataMut> GLWECiphertext<D> {
{
#[cfg(debug_assertions)]
{
assert_eq!(self.rank(), other.rank())
assert_eq!(self.rank(), other.rank());
debug_assert_eq!(self.size(), other.size());
}
let k: usize = other.k;
@@ -168,7 +169,7 @@ impl<D: DataMut> GLWECiphertext<D> {
let cols: usize = other.rank() + 1;
module.vec_znx_copy(&mut self.data, 0, &other.data, 0);
(1..cols).for_each(|i| {
module.vec_znx_fill_uniform(basek, &mut self.data, i, k, source);
module.vec_znx_fill_uniform(basek, &mut self.data, i, source);
});
self.basek = basek;