Trait VecZnxAddDistF64

Source
pub trait VecZnxAddDistF64 {
    // Required method
    fn vec_znx_add_dist_f64<R, D: Distribution<f64>>(
        &self,
        basek: usize,
        res: &mut R,
        res_col: usize,
        k: usize,
        source: &mut Source,
        dist: D,
        bound: f64,
    )
       where R: VecZnxToMut;
}

Required Methods§

Source

fn vec_znx_add_dist_f64<R, D: Distribution<f64>>( &self, basek: usize, res: &mut R, res_col: usize, k: usize, source: &mut Source, dist: D, bound: f64, )
where R: VecZnxToMut,

Adds vector sampled according to the provided distribution, scaled by 2^{-k} and bounded to [-bound, bound].

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§