GLWEPacking

Trait GLWEPacking 

Source
pub trait GLWEPacking<BE: Backend>{
    // Provided method
    fn glwe_pack<R, K>(
        &self,
        cts: &mut HashMap<usize, &mut R>,
        log_gap_out: usize,
        keys: &HashMap<i64, K>,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut + GLWEToRef + GLWEInfos,
             K: GGLWEPreparedToRef<BE> + GetGaloisElement + GGLWEInfos,
             Scratch<BE>: ScratchTakeCore<BE> { ... }
}

Provided Methods§

Source

fn glwe_pack<R, K>( &self, cts: &mut HashMap<usize, &mut R>, log_gap_out: usize, keys: &HashMap<i64, K>, scratch: &mut Scratch<BE>, )

Packs [x_0: GLWE(m_0), x_1: GLWE(m_1), …, x_i: GLWE(m_i)] to [0: GLWE(m_0 * X^x_0 + m_1 * X^x_1 + … + m_i * X^x_i)]

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.

Implementations on Foreign Types§

Source§

impl<BE: Backend> GLWEPacking<BE> for Module<BE>

Implementors§