[][src]Trait concrete_lib::npe::rlwe::RLWE

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

Associated Types

type STorus

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl RLWE for u32[src]

type STorus = <u32 as Types>::STorus

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 = <u64 as Types>::STorus

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...