mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-12 05:35:06 -05:00
refactor: computing_cost module style: regroup search space parameters style: use config struct to regroup parameters
15 lines
520 B
Rust
15 lines
520 B
Rust
use super::complexity::Complexity;
|
|
use crate::parameters::{KeyswitchParameters, LweDimension, PbsParameters};
|
|
|
|
pub trait ComplexityModel: Send + Sync {
|
|
fn pbs_complexity(&self, params: PbsParameters, ciphertext_modulus_log: u64) -> Complexity;
|
|
fn ks_complexity(&self, params: KeyswitchParameters, ciphertext_modulus_log: u64)
|
|
-> Complexity;
|
|
fn levelled_complexity(
|
|
&self,
|
|
sum_size: u64,
|
|
lwe_dimension: LweDimension,
|
|
ciphertext_modulus_log: u64,
|
|
) -> Complexity;
|
|
}
|