fix(optimizer): optimize partition in reverse order

note: it was initially the case, but it was simplified and we didn't see shortcomings on tests.
This commit is contained in:
rudy
2023-05-22 16:49:22 +02:00
committed by rudy-6-4
parent fdfd4760f1
commit b3ec478de9

View File

@@ -861,7 +861,7 @@ pub fn optimize(
let mut fix_point = params.clone();
for iter in 0..=10 {
for partition in 0..nb_partitions {
for partition in (0..nb_partitions).rev() {
let new_params = optimize_macro(
security_level,
ciphertext_modulus_log,