pub struct GenericPreExpanded<F> { /* private fields */ }Expand description
Works for any $S^{(0)}$ and pre-computes twiddles.
Implementations§
Source§impl<F: BinaryField> GenericPreExpanded<F>
impl<F: BinaryField> GenericPreExpanded<F>
Sourcepub fn generate_from_subspace(subspace: &BinarySubspace<F>) -> Self
pub fn generate_from_subspace(subspace: &BinarySubspace<F>) -> Self
Given a basis of $S^{(0)}$, computes a compatible DomainContext.
This will precompute the twiddles.
Trait Implementations§
Source§impl<F: Debug> Debug for GenericPreExpanded<F>
impl<F: Debug> Debug for GenericPreExpanded<F>
Source§impl<F: BinaryField> DomainContext for GenericPreExpanded<F>
impl<F: BinaryField> DomainContext for GenericPreExpanded<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 GenericPreExpanded<F>
impl<F> RefUnwindSafe for GenericPreExpanded<F>where
F: RefUnwindSafe,
impl<F> Send for GenericPreExpanded<F>where
F: Send,
impl<F> Sync for GenericPreExpanded<F>where
F: Sync,
impl<F> Unpin for GenericPreExpanded<F>where
F: Unpin,
impl<F> UnwindSafe for GenericPreExpanded<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