Skip to main content

RotationIdeal

Struct RotationIdeal 

Source
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 at a.
  • W > 1: the ideal (X^W - a), checked via polynomial reduction modulo X^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>

Source

pub fn new(generating_root: E) -> Self

Creates a new ideal of R[X] generated by X^W - generating_root.

Source§

impl<E: SetElement, const W: usize> RotationIdeal<E, W>

Source

pub fn project<C, R>( field_cfg: &C, ideal_over_ring: &RotationIdeal<R, W>, ) -> Self
where 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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<E: Debug + SetElement, const W: usize> Debug for RotationIdeal<E, W>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: SetElement, const W: usize> Display for RotationIdeal<E, W>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: SetElement, const W: usize> FromRef<RotationIdeal<E, W>> for RotationIdeal<E, W>

Source§

fn from_ref(ideal: &RotationIdeal<E, W>) -> Self

Source§

impl<E: Copy + SetElement, const W: usize> Copy for RotationIdeal<E, W>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.