pub struct GenericOnTheFly<F> { /* private fields */ }Expand description
Works for any $S^{(0)}$ and computes twiddles on-the-fly.
On-the-fly twiddle computation should not be used for running a big NTT or for a complete FRI folding. In both cases, all twiddles will be accessed eventually, so they might as well be precomputed. But it could possibly be used e.g. in the FRI verifier, which only accesses a few selected twiddles.
Implementations§
Source§impl<F: BinaryField> GenericOnTheFly<F>
impl<F: BinaryField> GenericOnTheFly<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 not precompute the twiddles; instead they will be computed on-the-fly.
Trait Implementations§
Source§impl<F: Debug> Debug for GenericOnTheFly<F>
impl<F: Debug> Debug for GenericOnTheFly<F>
Source§impl<F: BinaryField> DomainContext for GenericOnTheFly<F>
impl<F: BinaryField> DomainContext for GenericOnTheFly<F>
Auto Trait Implementations§
impl<F> Freeze for GenericOnTheFly<F>
impl<F> RefUnwindSafe for GenericOnTheFly<F>where
F: RefUnwindSafe,
impl<F> Send for GenericOnTheFly<F>where
F: Send,
impl<F> Sync for GenericOnTheFly<F>where
F: Sync,
impl<F> Unpin for GenericOnTheFly<F>where
F: Unpin,
impl<F> UnwindSafe for GenericOnTheFly<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