pub struct RotationIdeal<R: Semiring, const W: usize> { /* private fields */ }Expand description
An ideal of R[X] generated by X^W - generating_root.
W = 1: the ideal(X - a), checked via point evaluation ata.W > 1: the ideal(X^W - a), checked via polynomial reduction moduloX^W - a.
The compile-time W parameter allows the membership check to
specialize: W = 1 avoids allocating a remainder buffer and uses
Horner evaluation, while W > 1 uses a chunk-based reduction.
Implementations§
Source§impl<R: Semiring, const W: usize> RotationIdeal<R, W>
impl<R: Semiring, const W: usize> RotationIdeal<R, W>
Source§impl<F: PrimeField, const W: usize> RotationIdeal<F, W>
impl<F: PrimeField, const W: usize> RotationIdeal<F, W>
pub fn from_with_cfg<R>(
ideal_over_ring: &RotationIdeal<R, W>,
field_cfg: &F::Config,
) -> Selfwhere
R: Semiring,
F: for<'a> FromWithConfig<&'a R>,
Trait Implementations§
Source§impl<R: Clone + Semiring, const W: usize> Clone for RotationIdeal<R, W>
impl<R: Clone + Semiring, const W: usize> Clone for RotationIdeal<R, W>
Source§fn clone(&self) -> RotationIdeal<R, W>
fn clone(&self) -> RotationIdeal<R, W>
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<R: Semiring, const W: usize> FromRef<RotationIdeal<R, W>> for RotationIdeal<R, W>
impl<R: Semiring, const W: usize> FromRef<RotationIdeal<R, W>> for RotationIdeal<R, W>
fn from_ref(ideal: &RotationIdeal<R, W>) -> Self
impl<R: Copy + Semiring, const W: usize> Copy for RotationIdeal<R, W>
impl<R: Semiring, const W: usize> Ideal for RotationIdeal<R, W>
Auto Trait Implementations§
impl<R, const W: usize> Freeze for RotationIdeal<R, W>where
R: Freeze,
impl<R, const W: usize> RefUnwindSafe for RotationIdeal<R, W>where
R: RefUnwindSafe,
impl<R, const W: usize> Send for RotationIdeal<R, W>
impl<R, const W: usize> Sync for RotationIdeal<R, W>
impl<R, const W: usize> Unpin for RotationIdeal<R, W>where
R: Unpin,
impl<R, const W: usize> UnsafeUnpin for RotationIdeal<R, W>where
R: UnsafeUnpin,
impl<R, const W: usize> UnwindSafe for RotationIdeal<R, W>where
R: 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> 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