pub struct RotationIdeal<E: SetElement, 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<E: SetElement, const W: usize> RotationIdeal<E, W>
impl<E: SetElement, const W: usize> RotationIdeal<E, W>
Source§impl<E: SetElement, const W: usize> RotationIdeal<E, W>
impl<E: SetElement, const W: usize> RotationIdeal<E, W>
Sourcepub fn project<C, R>(
field_cfg: &C,
ideal_over_ring: &RotationIdeal<R, W>,
) -> Selfwhere
C: FieldConfig + ProjectElementWithConfig<R> + SemiringConfig<Element = E>,
R: SetElement,
pub fn project<C, R>(
field_cfg: &C,
ideal_over_ring: &RotationIdeal<R, W>,
) -> Selfwhere
C: FieldConfig + ProjectElementWithConfig<R> + SemiringConfig<Element = E>,
R: SetElement,
Project a rotation ideal over the ring R into the field configured
by field_cfg, by projecting the generating root.
Trait Implementations§
Source§impl<E: Clone + SetElement, const W: usize> Clone for RotationIdeal<E, W>
impl<E: Clone + SetElement, const W: usize> Clone for RotationIdeal<E, W>
Source§fn clone(&self) -> RotationIdeal<E, W>
fn clone(&self) -> RotationIdeal<E, W>
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<E: SetElement, const W: usize> Display for RotationIdeal<E, W>
impl<E: SetElement, const W: usize> Display for RotationIdeal<E, W>
Source§impl<E: SetElement, const W: usize> FromRef<RotationIdeal<E, W>> for RotationIdeal<E, W>
impl<E: SetElement, const W: usize> FromRef<RotationIdeal<E, W>> for RotationIdeal<E, W>
fn from_ref(ideal: &RotationIdeal<E, W>) -> Self
impl<E: Copy + SetElement, const W: usize> Copy for RotationIdeal<E, W>
impl<E: SetElement, const W: usize> Ideal for RotationIdeal<E, W>
Auto Trait Implementations§
impl<E, const W: usize> Freeze for RotationIdeal<E, W>where
E: Freeze,
impl<E, const W: usize> RefUnwindSafe for RotationIdeal<E, W>where
E: RefUnwindSafe,
impl<E, const W: usize> Send for RotationIdeal<E, W>
impl<E, const W: usize> Sync for RotationIdeal<E, W>
impl<E, const W: usize> Unpin for RotationIdeal<E, W>where
E: Unpin,
impl<E, const W: usize> UnsafeUnpin for RotationIdeal<E, W>where
E: UnsafeUnpin,
impl<E, const W: usize> UnwindSafe for RotationIdeal<E, W>where
E: 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