Trait concrete_npe::rlwe::RLWE[][src]

pub trait RLWE: Sized {
    type STorus;
    fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64;
}

Associated Types

Loading content...

Required methods

fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64[src]

Loading content...

Implementations on Foreign Types

impl RLWE for u32[src]

type STorus = i32

fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64[src]

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 ciphertext
  • scalar_polynomial - a slice of Torus with the input weights Output
  • the error variance for each slot of the output ciphertext

impl RLWE for u64[src]

type STorus = i64

fn scalar_polynomial_mult(variance: f64, scalar_polynomial: &[Self]) -> f64[src]

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 ciphertext
  • scalar_polynomial - a slice of Torus with the input weights Output
  • the error variance for each slot of the output ciphertext
Loading content...

Implementors

Loading content...