mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
wip
This commit is contained in:
@@ -154,7 +154,7 @@ where
|
||||
);
|
||||
|
||||
let mut auto_key_apply_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc(module, &auto_key_apply_infos);
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &auto_key_apply_infos);
|
||||
|
||||
auto_key_apply_prepared.prepare(module, &auto_key_apply, scratch.borrow());
|
||||
|
||||
@@ -348,7 +348,7 @@ where
|
||||
);
|
||||
|
||||
let mut auto_key_apply_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc(module, &auto_key_apply_layout);
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &auto_key_apply_layout);
|
||||
|
||||
auto_key_apply_prepared.prepare(module, &auto_key_apply, scratch.borrow());
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ where
|
||||
);
|
||||
|
||||
let mut auto_key_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc(module, &auto_key_layout);
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &auto_key_layout);
|
||||
auto_key_prepared.prepare(module, &auto_key, scratch.borrow());
|
||||
|
||||
let mut tsk_prepared: TensorKeyPrepared<Vec<u8>, B> = TensorKeyPrepared::alloc(module, &tensor_key_layout);
|
||||
@@ -359,7 +359,7 @@ where
|
||||
);
|
||||
|
||||
let mut auto_key_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc(module, &auto_key_layout);
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &auto_key_layout);
|
||||
auto_key_prepared.prepare(module, &auto_key, scratch.borrow());
|
||||
|
||||
let mut tsk_prepared: TensorKeyPrepared<Vec<u8>, B> = TensorKeyPrepared::alloc(module, &tensor_key_layout);
|
||||
|
||||
@@ -141,7 +141,7 @@ where
|
||||
);
|
||||
|
||||
let mut autokey_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc(module, &autokey_infos);
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &autokey_infos);
|
||||
autokey_prepared.prepare(module, &autokey, scratch.borrow());
|
||||
|
||||
ct_out.automorphism(module, &ct_in, &autokey_prepared, scratch.borrow());
|
||||
@@ -274,7 +274,8 @@ where
|
||||
scratch.borrow(),
|
||||
);
|
||||
|
||||
let mut autokey_prepared: AutomorphismKeyPrepared<Vec<u8>, B> = AutomorphismKeyPrepared::alloc(module, &autokey);
|
||||
let mut autokey_prepared: AutomorphismKeyPrepared<Vec<u8>, B> =
|
||||
AutomorphismKeyPrepared::alloc_from_infos(module, &autokey);
|
||||
autokey_prepared.prepare(module, &autokey, scratch.borrow());
|
||||
|
||||
ct.automorphism_inplace(module, &autokey_prepared, scratch.borrow());
|
||||
|
||||
Reference in New Issue
Block a user