Skip to content

Commit

Permalink
fix(concrete_npe): fix base log in the pbs noise
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy authored and aPere3 committed Jan 28, 2022
1 parent 8d1649a commit 9e25a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion concrete-npe/src/operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ where

Variance(res)
}

/// Computes the dispersion of the bits greater than $q$ after a modulus switching.
/// # Example
/// ```rust
Expand Down Expand Up @@ -709,7 +710,7 @@ where
{
let n = lwe_mask_size.0 as f64;
let k = rlwe_mask_size.0 as f64;
let b = base_log.0 as f64;
let b = (1 << base_log.0) as f64;
let l = level.0 as f64;
let b2l = f64::powf(b, 2. * l) as f64;
let big_n = poly_size.0 as f64;
Expand Down

0 comments on commit 9e25a62

Please sign in to comment.