pub struct MultithreadedNTT<F: BinaryField, TA: TwiddleAccess<F> + Sync = OnTheFlyTwiddleAccess<F, Vec<F>>> { /* private fields */ }
Expand description
Implementation of AdditiveNTT
that performs the computation multithreaded.
Implementations§
source§impl<F: BinaryField, TA: TwiddleAccess<F> + Sync> MultithreadedNTT<F, TA>
impl<F: BinaryField, TA: TwiddleAccess<F> + Sync> MultithreadedNTT<F, TA>
sourcepub fn log_domain_size(&self) -> usize
pub fn log_domain_size(&self) -> usize
Base-2 logarithm of the size of the NTT domain.
sourcepub fn get_subspace_eval(&self, i: usize, j: usize) -> F
pub fn get_subspace_eval(&self, i: usize, j: usize) -> F
Get the normalized subspace polynomial evaluation $\hat{W}_i(\beta_j)$.
§Preconditions
i
must be less thanself.log_domain_size()
j
must be less thanself.log_domain_size() - i
Trait Implementations§
source§impl<F, TA, P> AdditiveNTT<P> for MultithreadedNTT<F, TA>
impl<F, TA, P> AdditiveNTT<P> for MultithreadedNTT<F, TA>
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>
source§impl<F: Debug + BinaryField, TA: Debug + TwiddleAccess<F> + Sync> Debug for MultithreadedNTT<F, TA>
impl<F: Debug + BinaryField, TA: Debug + TwiddleAccess<F> + Sync> Debug for MultithreadedNTT<F, TA>
Auto Trait Implementations§
impl<F, TA> Freeze for MultithreadedNTT<F, TA>
impl<F, TA> RefUnwindSafe for MultithreadedNTT<F, TA>
impl<F, TA> Send for MultithreadedNTT<F, TA>
impl<F, TA> Sync for MultithreadedNTT<F, TA>
impl<F, TA> Unpin for MultithreadedNTT<F, TA>
impl<F, TA> UnwindSafe for MultithreadedNTT<F, TA>
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