pub struct Radix8PnttParams<C: Config> {
pub row_len: usize,
pub codeword_len: usize,
pub depth: usize,
pub base_len: usize,
pub base_dim: usize,
pub base_dim_log2: u32,
pub base_dim_mask: usize,
pub base_matrix: Vec<Vec<PnttInt>>,
pub butterfly_twiddles: Vec<Vec<[[PnttInt; 8]; 7]>>,
/* private fields */
}Fields§
§row_len: usizeThe length of the pseudo NTT’s input.
codeword_len: usizeThe length of the pseudo NTT’s output.
depth: usizeThe number of steps where NTT is performed recursively.
base_len: usizeThe number of columns of the base matrix.
base_dim: usizeThe number of rows of the base matrix, always a power of 2.
base_dim_log2: u32log2 of the number of rows of the base matrix.
base_dim_mask: usizeThe mask to compute i % base_dim.
base_matrix: Vec<Vec<PnttInt>>The base matrix of the pseudo NTT.
butterfly_twiddles: Vec<Vec<[[PnttInt; 8]; 7]>>Precomputed twiddles for every stage that already contain the relevant root-of-unity factor. This lets the butterfly apply a single multiplication per term instead of two.
Implementations§
Trait Implementations§
Source§impl<C: Clone + Config> Clone for Radix8PnttParams<C>
impl<C: Clone + Config> Clone for Radix8PnttParams<C>
Source§fn clone(&self) -> Radix8PnttParams<C>
fn clone(&self) -> Radix8PnttParams<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug + Config> Debug for Radix8PnttParams<C>
impl<C: Debug + Config> Debug for Radix8PnttParams<C>
Source§impl<C: PartialEq + Config> PartialEq for Radix8PnttParams<C>
impl<C: PartialEq + Config> PartialEq for Radix8PnttParams<C>
impl<C: Eq + Config> Eq for Radix8PnttParams<C>
impl<C: Config> StructuralPartialEq for Radix8PnttParams<C>
Auto Trait Implementations§
impl<C> Freeze for Radix8PnttParams<C>
impl<C> RefUnwindSafe for Radix8PnttParams<C>where
C: RefUnwindSafe,
impl<C> Send for Radix8PnttParams<C>
impl<C> Sync for Radix8PnttParams<C>
impl<C> Unpin for Radix8PnttParams<C>where
C: Unpin,
impl<C> UnsafeUnpin for Radix8PnttParams<C>
impl<C> UnwindSafe for Radix8PnttParams<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<T> AsMaybeUninit for T
impl<T> AsMaybeUninit for T
§type Uninit = MaybeUninit<T>
type Uninit = MaybeUninit<T>
This type in its maybe-uninitialized form.
§fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit
fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit
Converts a
&self to its maybe-initialized equivalent.§unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit
unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit
Converts a
&mut T to its maybe-initialized equivalent. Read more§unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit
unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit
Converts a raw pointer to a reference to maybe-uninit. Read more
§unsafe fn raw_mut_as_uninit<'a>(
raw: *mut T,
) -> &'a mut <T as AsMaybeUninit>::Uninit
unsafe fn raw_mut_as_uninit<'a>( raw: *mut T, ) -> &'a mut <T as AsMaybeUninit>::Uninit
Converts a raw mutable pointer to a mutable reference to maybe-uninit. Read more
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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