pub struct NttPoly { /* private fields */ }Expand description
Polynomial in the NTT domain (Montgomery-lane representation).
Implementations§
Source§impl NttPoly
impl NttPoly
Sourcepub fn packed_ntt_coefficients(&self) -> [FieldElement; 256]
pub fn packed_ntt_coefficients(&self) -> [FieldElement; 256]
Coefficients in SIMD lane order (Montgomery NTT domain) without inverse transform.
Sourcepub fn as_simd(&self) -> &[Coefficients; 32]
pub fn as_simd(&self) -> &[Coefficients; 32]
Borrow the internal SIMD lanes (read-only).
Sourcepub fn as_simd_mut(&mut self) -> &mut [Coefficients; 32]
pub fn as_simd_mut(&mut self) -> &mut [Coefficients; 32]
Mutable SIMD lanes (expert use).
Sourcepub fn pointwise_mul_assign(&mut self, rhs: &Self)
pub fn pointwise_mul_assign(&mut self, rhs: &Self)
Pointwise Montgomery multiply self *= rhs in the NTT domain.
Sourcepub fn add_assign(&mut self, rhs: &Self)
pub fn add_assign(&mut self, rhs: &Self)
Add two NTT polynomials lane-wise (no modular reduction between adds; use before INTT as in ML-DSA accumulators).
Sourcepub fn sub_assign(&mut self, rhs: &Self)
pub fn sub_assign(&mut self, rhs: &Self)
Subtract lane-wise.
Trait Implementations§
impl Eq for NttPoly
impl StructuralPartialEq for NttPoly
Auto Trait Implementations§
impl Freeze for NttPoly
impl RefUnwindSafe for NttPoly
impl Send for NttPoly
impl Sync for NttPoly
impl Unpin for NttPoly
impl UnsafeUnpin for NttPoly
impl UnwindSafe for NttPoly
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