GLWEKeyswitch

Trait GLWEKeyswitch 

Source
pub trait GLWEKeyswitch<BE: Backend>{
    // Provided methods
    fn glwe_keyswitch_tmp_bytes<R, A, B>(
        &self,
        res_infos: &R,
        a_infos: &A,
        key_infos: &B,
    ) -> usize
       where R: GLWEInfos,
             A: GLWEInfos,
             B: GGLWEInfos { ... }
    fn glwe_keyswitch<R, A, K>(
        &self,
        res: &mut R,
        a: &A,
        key: &K,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut,
             A: GLWEToRef,
             K: GGLWEPreparedToRef<BE>,
             Scratch<BE>: ScratchTakeCore<BE> { ... }
    fn glwe_keyswitch_inplace<R, K>(
        &self,
        res: &mut R,
        key: &K,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut,
             K: GGLWEPreparedToRef<BE>,
             Scratch<BE>: ScratchTakeCore<BE> { ... }
}

Provided Methods§

Source

fn glwe_keyswitch_tmp_bytes<R, A, B>( &self, res_infos: &R, a_infos: &A, key_infos: &B, ) -> usize
where R: GLWEInfos, A: GLWEInfos, B: GGLWEInfos,

Source

fn glwe_keyswitch<R, A, K>( &self, res: &mut R, a: &A, key: &K, scratch: &mut Scratch<BE>, )

Source

fn glwe_keyswitch_inplace<R, K>( &self, res: &mut R, key: &K, 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> GLWEKeyswitch<BE> for Module<BE>

Implementors§