Trait concrete_npe::rlwe::RLWE [−][src]
pub trait RLWE: Sized {
type STorus;
fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64;
}
Associated Types
Required methods
fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64
Implementations on Foreign Types
Computes the variance of the error distribution after a multiplication between a RLWE sample and a scalar polynomial sigma_out^2 <- \Sum_i weight_i^2 * sigma^2 Arguments
variance
- the error variance in each slot of the input ciphertextscalar_polynomial
- a slice of Torus with the input weights Output- the error variance for each slot of the output ciphertext
Computes the variance of the error distribution after a multiplication between a RLWE sample and a scalar polynomial sigma_out^2 <- \Sum_i weight_i^2 * sigma^2 Arguments
variance
- the error variance in each slot of the input ciphertextscalar_polynomial
- a slice of Torus with the input weights Output- the error variance for each slot of the output ciphertext