GLWEToLWEKeyPrepared

Struct GLWEToLWEKeyPrepared 

Source
pub struct GLWEToLWEKeyPrepared<D: Data, B: Backend>(/* private fields */);

Implementations§

Source§

impl<B: Backend> GLWEToLWEKeyPrepared<Vec<u8>, B>

Source

pub fn alloc_from_infos<A, M>(module: &M, infos: &A) -> Self

Source

pub fn alloc<M>( module: &M, base2k: Base2K, k: TorusPrecision, rank_in: Rank, dnum: Dnum, ) -> Self

Source

pub fn bytes_of_from_infos<A, M>(module: &M, infos: &A) -> usize

Source

pub fn bytes_of<M>( module: &M, base2k: Base2K, k: TorusPrecision, rank_in: Rank, dnum: Dnum, ) -> usize

Source§

impl<B: Backend> GLWEToLWEKeyPrepared<Vec<u8>, B>

Source

pub fn prepare_tmp_bytes<A, M>(&self, module: &M, infos: &A)

Source§

impl<D: DataMut, B: Backend> GLWEToLWEKeyPrepared<D, B>

Source

pub fn prepare<O, M>(&mut self, module: &M, other: &O, scratch: &mut Scratch<B>)

Trait Implementations§

Source§

impl<D: Data, B: Backend> GGLWEInfos for GLWEToLWEKeyPrepared<D, B>

Source§

fn rank_in(&self) -> Rank

Source§

fn dsize(&self) -> Dsize

Source§

fn rank_out(&self) -> Rank

Source§

fn dnum(&self) -> Dnum

Source§

fn gglwe_layout(&self) -> GGLWELayout

Source§

impl<D: DataMut, B: Backend> GGLWEPreparedToMut<B> for GLWEToLWEKeyPrepared<D, B>

Source§

fn to_mut(&mut self) -> GGLWEPrepared<&mut [u8], B>

Source§

impl<D: DataRef, B: Backend> GGLWEPreparedToRef<B> for GLWEToLWEKeyPrepared<D, B>

Source§

fn to_ref(&self) -> GGLWEPrepared<&[u8], B>

Source§

impl<D: Data, B: Backend> GLWEInfos for GLWEToLWEKeyPrepared<D, B>

Source§

impl<D: DataRef, B: Backend> GLWESwitchingKeyDegrees for GLWEToLWEKeyPrepared<D, B>

Source§

impl<D: DataMut, B: Backend> GLWESwitchingKeyDegreesMut for GLWEToLWEKeyPrepared<D, B>

Source§

fn input_degree(&mut self) -> &mut Degree

Source§

fn output_degree(&mut self) -> &mut Degree

Source§

impl<D: Data, B: Backend> LWEInfos for GLWEToLWEKeyPrepared<D, B>

Source§

fn base2k(&self) -> Base2K

Source§

fn k(&self) -> TorusPrecision

Source§

fn n(&self) -> Degree

Source§

fn size(&self) -> usize

Source§

fn log_n(&self) -> usize

Source§

fn max_k(&self) -> TorusPrecision

Source§

fn lwe_layout(&self) -> LWELayout

Source§

impl<D: PartialEq + Data, B: PartialEq + Backend> PartialEq for GLWEToLWEKeyPrepared<D, B>

Source§

fn eq(&self, other: &GLWEToLWEKeyPrepared<D, B>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D: Eq + Data, B: Eq + Backend> Eq for GLWEToLWEKeyPrepared<D, B>

Source§

impl<D: Data, B: Backend> StructuralPartialEq for GLWEToLWEKeyPrepared<D, B>

Auto Trait Implementations§

§

impl<D, B> Freeze for GLWEToLWEKeyPrepared<D, B>
where D: Freeze,

§

impl<D, B> RefUnwindSafe for GLWEToLWEKeyPrepared<D, B>

§

impl<D, B> Send for GLWEToLWEKeyPrepared<D, B>
where D: Send,

§

impl<D, B> Sync for GLWEToLWEKeyPrepared<D, B>
where D: Sync,

§

impl<D, B> Unpin for GLWEToLWEKeyPrepared<D, B>
where D: Unpin, B: Unpin,

§

impl<D, B> UnwindSafe for GLWEToLWEKeyPrepared<D, B>
where D: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.