pub struct NaiveAdditiveNtt<F> { /* private fields */ }Expand description
Reference additive NTT.
The forward transform evaluates Σ_i d_i · X_i(x) directly, with the normalised subspace
polynomials taken from the product definition Ŵ_j(x) = ∏_{s ∈ S_j}(x − s) / ∏_{s ∈ S_j}(v_j − s).
It therefore depends on none of D8’s identities and is a genuine oracle for the fast crate::LchNtt.
The cost is O(n² log n); keep test sizes at or below 2^10.
Trait Implementations§
Source§impl<F: TowerLevel> AdditiveNtt<F> for NaiveAdditiveNtt<F>
impl<F: TowerLevel> AdditiveNtt<F> for NaiveAdditiveNtt<F>
Source§fn shifted_ntt_batch(
&self,
mat: RowMajorMatrix<F>,
shift: F,
) -> RowMajorMatrix<F>
fn shifted_ntt_batch( &self, mat: RowMajorMatrix<F>, shift: F, ) -> RowMajorMatrix<F>
Evaluates each column on the coset
shift + S_ℓ. Read moreSource§fn shifted_intt_batch(
&self,
mat: RowMajorMatrix<F>,
shift: F,
) -> RowMajorMatrix<F>
fn shifted_intt_batch( &self, mat: RowMajorMatrix<F>, shift: F, ) -> RowMajorMatrix<F>
Inverse of
shifted_ntt_batch. Read moreSource§fn ntt_batch(&self, mat: RowMajorMatrix<F>) -> RowMajorMatrix<F>
fn ntt_batch(&self, mat: RowMajorMatrix<F>) -> RowMajorMatrix<F>
Evaluates each column on
S_ℓ.Source§fn intt_batch(&self, mat: RowMajorMatrix<F>) -> RowMajorMatrix<F>
fn intt_batch(&self, mat: RowMajorMatrix<F>) -> RowMajorMatrix<F>
Inverse of
ntt_batch.Source§fn lde_batch(
&self,
mat: RowMajorMatrix<F>,
added_bits: usize,
) -> RowMajorMatrix<F>
fn lde_batch( &self, mat: RowMajorMatrix<F>, added_bits: usize, ) -> RowMajorMatrix<F>
Low-degree extension onto
S_{ℓ + added_bits} ⊃ S_ℓ. Read moreSource§fn shifted_lde_batch(
&self,
mat: RowMajorMatrix<F>,
added_bits: usize,
shift: F,
) -> RowMajorMatrix<F>
fn shifted_lde_batch( &self, mat: RowMajorMatrix<F>, added_bits: usize, shift: F, ) -> RowMajorMatrix<F>
lde_batch on the coset shift + S_{ℓ + added_bits}.Source§impl<F: Clone> Clone for NaiveAdditiveNtt<F>
impl<F: Clone> Clone for NaiveAdditiveNtt<F>
Source§fn clone(&self) -> NaiveAdditiveNtt<F>
fn clone(&self) -> NaiveAdditiveNtt<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for NaiveAdditiveNtt<F>
impl<F: Debug> Debug for NaiveAdditiveNtt<F>
Source§impl<F: Default> Default for NaiveAdditiveNtt<F>
impl<F: Default> Default for NaiveAdditiveNtt<F>
Source§fn default() -> NaiveAdditiveNtt<F>
fn default() -> NaiveAdditiveNtt<F>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<F> Freeze for NaiveAdditiveNtt<F>where
PhantomData<F>: Freeze,
impl<F> RefUnwindSafe for NaiveAdditiveNtt<F>where
PhantomData<F>: RefUnwindSafe,
impl<F> Send for NaiveAdditiveNtt<F>where
PhantomData<F>: Send,
impl<F> Sync for NaiveAdditiveNtt<F>where
PhantomData<F>: Sync,
impl<F> Unpin for NaiveAdditiveNtt<F>where
PhantomData<F>: Unpin,
impl<F> UnsafeUnpin for NaiveAdditiveNtt<F>where
PhantomData<F>: UnsafeUnpin,
impl<F> UnwindSafe for NaiveAdditiveNtt<F>where
PhantomData<F>: UnwindSafe,
Blanket Implementations§
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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