GLWEExternalProduct

Trait GLWEExternalProduct 

Source
pub trait GLWEExternalProduct<BE: Backend> {
    // Required methods
    fn glwe_external_product_tmp_bytes<R, A, B>(
        &self,
        res_infos: &R,
        a_infos: &A,
        b_infos: &B,
    ) -> usize
       where R: GLWEInfos,
             A: GLWEInfos,
             B: GGSWInfos;
    fn glwe_external_product_inplace<R, D>(
        &self,
        res: &mut R,
        a: &D,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut + GLWEInfos,
             D: GGSWPreparedToRef<BE> + GGSWInfos,
             Scratch<BE>: ScratchTakeCore<BE>;
    fn glwe_external_product<R, A, D>(
        &self,
        res: &mut R,
        lhs: &A,
        rhs: &D,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut + GLWEInfos,
             A: GLWEToRef + GLWEInfos,
             D: GGSWPreparedToRef<BE> + GGSWInfos,
             Scratch<BE>: ScratchTakeCore<BE>;
}

Required Methods§

Source

fn glwe_external_product_tmp_bytes<R, A, B>( &self, res_infos: &R, a_infos: &A, b_infos: &B, ) -> usize
where R: GLWEInfos, A: GLWEInfos, B: GGSWInfos,

Source

fn glwe_external_product_inplace<R, D>( &self, res: &mut R, a: &D, scratch: &mut Scratch<BE>, )

Source

fn glwe_external_product<R, A, D>( &self, res: &mut R, lhs: &A, rhs: &D, scratch: &mut Scratch<BE>, )

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> GLWEExternalProduct<BE> for Module<BE>

Source§

fn glwe_external_product_tmp_bytes<R, A, B>( &self, res: &R, a: &A, ggsw: &B, ) -> usize
where R: GLWEInfos, A: GLWEInfos, B: GGSWInfos,

Source§

fn glwe_external_product_inplace<R, D>( &self, res: &mut R, ggsw: &D, scratch: &mut Scratch<BE>, )

Source§

fn glwe_external_product<R, A, G>( &self, res: &mut R, a: &A, ggsw: &G, scratch: &mut Scratch<BE>, )

Implementors§