Function concrete_npe::lwe::add_n_uncorrelated[][src]

pub fn add_n_uncorrelated(variances: &[f64]) -> f64
Expand description

Computes the variance of the error distribution after an addition of n uncorrelated ciphertexts sigma_out^2 <- \Sum sigma_i^2 Arguments

  • variances - a slice of f64 with the error variances of all the input uncorrelated ciphertexts Output
  • the sum of the variances