pub struct BaseField;Expand description
Finite field
Trait Implementations§
Source§impl Field for BaseField
impl Field for BaseField
Source§const QL: Self::Long = 3329
const QL: Self::Long = 3329
Field modulus as
Self::Long.Source§const QLL: Self::LongLong = 3329
const QLL: Self::LongLong = 3329
Field modulus as
Self::LongLong.Source§const BARRETT_SHIFT: usize
const BARRETT_SHIFT: usize
Bit shift used in Barrett reduction.
Source§const BARRETT_MULTIPLIER: Self::LongLong
const BARRETT_MULTIPLIER: Self::LongLong
Precomputed multiplier for Barrett reduction.
Source§fn small_reduce(x: Self::Int) -> Self::Int
fn small_reduce(x: Self::Int) -> Self::Int
Reduce a value that’s already close to the modulus range.
Source§fn barrett_reduce(x: Self::Long) -> Self::Int
fn barrett_reduce(x: Self::Long) -> Self::Int
Reduce a wider value to a field element using Barrett reduction.
Source§impl MultiplyNtt for BaseField
Algorithm 11: MultiplyNTTs
impl MultiplyNtt for BaseField
Algorithm 11: MultiplyNTTs
Source§fn multiply_ntt(
lhs: &NttPolynomial<BaseField>,
rhs: &NttPolynomial<BaseField>,
) -> NttPolynomial<BaseField>
fn multiply_ntt( lhs: &NttPolynomial<BaseField>, rhs: &NttPolynomial<BaseField>, ) -> NttPolynomial<BaseField>
Multiply two NTT polynomials.
impl Copy for BaseField
impl Eq for BaseField
impl StructuralPartialEq for BaseField
Auto Trait Implementations§
impl Freeze for BaseField
impl RefUnwindSafe for BaseField
impl Send for BaseField
impl Sync for BaseField
impl Unpin for BaseField
impl UnsafeUnpin for BaseField
impl UnwindSafe for BaseField
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