pub enum DynamicDispatchNTT<F: BinaryField> {
SingleThreaded(SingleThreadedNTT<F>),
SingleThreadedPrecompute(SingleThreadedNTT<F, PrecomputedTwiddleAccess<F>>),
MultiThreaded(MultithreadedNTT<F>),
MultiThreadedPrecompute(MultithreadedNTT<F, PrecomputedTwiddleAccess<F>>),
}
Expand description
An enum that can be used to switch between different NTT implementations without passing AdditiveNTT as a type parameter.
Variants§
SingleThreaded(SingleThreadedNTT<F>)
SingleThreadedPrecompute(SingleThreadedNTT<F, PrecomputedTwiddleAccess<F>>)
MultiThreaded(MultithreadedNTT<F>)
MultiThreadedPrecompute(MultithreadedNTT<F, PrecomputedTwiddleAccess<F>>)
Implementations§
source§impl<F: BinaryField> DynamicDispatchNTT<F>
impl<F: BinaryField> DynamicDispatchNTT<F>
Trait Implementations§
source§impl<F, P> AdditiveNTT<P> for DynamicDispatchNTT<F>where
F: BinaryField,
P: PackedField<Scalar = F>,
impl<F, P> AdditiveNTT<P> for DynamicDispatchNTT<F>where
F: BinaryField,
P: PackedField<Scalar = F>,
source§fn log_domain_size(&self) -> usize
fn log_domain_size(&self) -> usize
Base-2 logarithm of the size of the NTT domain.
source§fn get_subspace_eval(&self, i: usize, j: usize) -> F
fn get_subspace_eval(&self, i: usize, j: usize) -> F
Get the normalized subspace polynomial evaluation $\hat{W}_i(\beta_j)$. Read more
source§fn forward_transform(
&self,
data: &mut [P],
coset: u32,
log_batch_size: usize,
) -> Result<(), Error>
fn forward_transform( &self, data: &mut [P], coset: u32, log_batch_size: usize, ) -> Result<(), Error>
source§fn inverse_transform(
&self,
data: &mut [P],
coset: u32,
log_batch_size: usize,
) -> Result<(), Error>
fn inverse_transform( &self, data: &mut [P], coset: u32, log_batch_size: usize, ) -> Result<(), Error>
fn forward_transform_ext<PE>( &self, data: &mut [PE], coset: u32, ) -> Result<(), Error>
fn inverse_transform_ext<PE>( &self, data: &mut [PE], coset: u32, ) -> Result<(), Error>
Auto Trait Implementations§
impl<F> Freeze for DynamicDispatchNTT<F>
impl<F> RefUnwindSafe for DynamicDispatchNTT<F>
impl<F> Send for DynamicDispatchNTT<F>
impl<F> Sync for DynamicDispatchNTT<F>
impl<F> Unpin for DynamicDispatchNTT<F>
impl<F> UnwindSafe for DynamicDispatchNTT<F>
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