GLWETensorKeyPreparedFactory

Trait GLWETensorKeyPreparedFactory 

Source
pub trait GLWETensorKeyPreparedFactory<B: Backend>
where Self: GGLWEPreparedFactory<B>,
{ // Provided methods fn alloc_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank, ) -> GLWETensorKeyPrepared<Vec<u8>, B> { ... } fn alloc_tensor_key_prepared_from_infos<A>( &self, infos: &A, ) -> GLWETensorKeyPrepared<Vec<u8>, B> where A: GGLWEInfos { ... } fn bytes_of_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, rank: Rank, dnum: Dnum, dsize: Dsize, ) -> usize { ... } fn bytes_of_tensor_key_prepared_from_infos<A>(&self, infos: &A) -> usize where A: GGLWEInfos { ... } fn prepare_tensor_key_tmp_bytes<A>(&self, infos: &A) -> usize where A: GGLWEInfos { ... } fn prepare_tensor_key<R, O>( &self, res: &mut R, other: &O, scratch: &mut Scratch<B>, ) where R: GGLWEPreparedToMut<B>, O: GGLWEToRef { ... } }

Provided Methods§

Source

fn alloc_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank, ) -> GLWETensorKeyPrepared<Vec<u8>, B>

Source

fn alloc_tensor_key_prepared_from_infos<A>( &self, infos: &A, ) -> GLWETensorKeyPrepared<Vec<u8>, B>
where A: GGLWEInfos,

Source

fn bytes_of_tensor_key_prepared( &self, base2k: Base2K, k: TorusPrecision, rank: Rank, dnum: Dnum, dsize: Dsize, ) -> usize

Source

fn bytes_of_tensor_key_prepared_from_infos<A>(&self, infos: &A) -> usize
where A: GGLWEInfos,

Source

fn prepare_tensor_key_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGLWEInfos,

Source

fn prepare_tensor_key<R, O>( &self, res: &mut R, other: &O, scratch: &mut Scratch<B>, )

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<B: Backend> GLWETensorKeyPreparedFactory<B> for Module<B>

Implementors§