pub struct GaoMateerPreExpanded<F> { /* private fields */ }
Expand description
Produces a specific “Gao-Mateer” $S^{(0)}$ and pre-computes twiddles. Only works for binary fields whose degree over $\mathbb{F}_2$ is a power of two.
For an explanation of this $S^{(0)}$, see GaoMateerOnTheFly
.
Implementations§
Source§impl<F: BinaryField + TraceOneElement> GaoMateerPreExpanded<F>
impl<F: BinaryField + TraceOneElement> GaoMateerPreExpanded<F>
Sourcepub fn generate(log_domain_size: usize) -> Self
pub fn generate(log_domain_size: usize) -> Self
Given the intended size of $S^{(0)}$, computes a “nice” Gao-Mateer DomainContext
.
This will precompute the twiddles.
§Preconditions
- The degree (over $\mathbb{F}2$) of the field needs to be a tower of two. For example, it does not work with $\mathbb{F}{2^3}$, but it works with $\mathbb{F}_{2^4}$.
log_domain_size
must be nonzero
Trait Implementations§
Source§impl<F: Debug> Debug for GaoMateerPreExpanded<F>
impl<F: Debug> Debug for GaoMateerPreExpanded<F>
Source§impl<F: BinaryField> DomainContext for GaoMateerPreExpanded<F>
impl<F: BinaryField> DomainContext for GaoMateerPreExpanded<F>
Auto Trait Implementations§
impl<F> Freeze for GaoMateerPreExpanded<F>
impl<F> RefUnwindSafe for GaoMateerPreExpanded<F>where
F: RefUnwindSafe,
impl<F> Send for GaoMateerPreExpanded<F>where
F: Send,
impl<F> Sync for GaoMateerPreExpanded<F>where
F: Sync,
impl<F> Unpin for GaoMateerPreExpanded<F>where
F: Unpin,
impl<F> UnwindSafe for GaoMateerPreExpanded<F>where
F: UnwindSafe,
Blanket Implementations§
§impl<T> AsMaybeUninit for T
impl<T> AsMaybeUninit for T
§type Uninit = MaybeUninit<T>
type Uninit = MaybeUninit<T>
This type in its maybe-uninitialized form.
§fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit
fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit
Converts a
&self
to its maybe-initialized equivalent.§unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit
unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit
Converts a
&mut T
to its maybe-initialized equivalent. Read more§unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit
unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit
Converts a raw pointer to a reference to maybe-uninit. Read more
§unsafe fn raw_mut_as_uninit<'a>(
raw: *mut T,
) -> &'a mut <T as AsMaybeUninit>::Uninit
unsafe fn raw_mut_as_uninit<'a>( raw: *mut T, ) -> &'a mut <T as AsMaybeUninit>::Uninit
Converts a raw mutable pointer to a mutable reference to maybe-uninit. Read more
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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