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_sizemust 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>
type Field = F
Source§fn log_domain_size(&self) -> usize
fn log_domain_size(&self) -> usize
Base 2 logarithm of the size of $S^{(0)}$, i.e., $\ell$. Read more
Source§fn subspace(&self, i: usize) -> BinarySubspace<F>
fn subspace(&self, i: usize) -> BinarySubspace<F>
Returns the binary subspace with dimension $i$. Read more
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§
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