automorphism tests

This commit is contained in:
Pro7ech
2025-10-20 16:31:25 +02:00
parent b91918dcaf
commit 1e2478852e
10 changed files with 154 additions and 354 deletions

View File

@@ -121,7 +121,7 @@ where
{
let (mut sk_out, _) = scratch_1.take_glwe_secret(self, sk.rank());
(0..res.rank_out().into()).for_each(|i| {
for i in 0..res.rank().into() {
self.vec_znx_automorphism(
self.galois_element_inv(p),
&mut sk_out.data.as_vec_znx_mut(),
@@ -129,7 +129,7 @@ where
&sk.data.as_vec_znx(),
i,
);
});
}
sk_out_prepared.prepare(self, &sk_out);
}

View File

@@ -156,7 +156,6 @@ where
//
// (-(a*s) + s0, a)
// (-(b*s) + s1, b)
for col_i in 0..rank_in {
for row_i in 0..dnum {
// Adds the scalar_znx_pt to the i-th limb of the vec_znx_pt