pub struct StackedReductionCpu<'a, SC: StarkProtocolConfig> { /* private fields */ }Trait Implementations§
Source§impl<'a, SC: StarkProtocolConfig> StackedReductionProver<'a, CpuColMajorBackend<SC>, ReferenceDevice<SC>> for StackedReductionCpu<'a, SC>where
SC::F: TwoAdicField,
SC::EF: TwoAdicField + ExtensionField<SC::F>,
CpuColMajorBackend<SC>: ProverBackend<Val = SC::F, Challenge = SC::EF, PcsData = StackedPcsData<SC::F, SC::Digest>, Matrix = ColMajorMatrix<SC::F>>,
impl<'a, SC: StarkProtocolConfig> StackedReductionProver<'a, CpuColMajorBackend<SC>, ReferenceDevice<SC>> for StackedReductionCpu<'a, SC>where
SC::F: TwoAdicField,
SC::EF: TwoAdicField + ExtensionField<SC::F>,
CpuColMajorBackend<SC>: ProverBackend<Val = SC::F, Challenge = SC::EF, PcsData = StackedPcsData<SC::F, SC::Digest>, Matrix = ColMajorMatrix<SC::F>>,
Source§fn new(
device: &ReferenceDevice<SC>,
stacked_per_commit: Vec<&'a StackedPcsData<SC::F, SC::Digest>>,
need_rot_per_commit: Vec<Vec<bool>>,
r: &[SC::EF],
lambda: SC::EF,
) -> Self
fn new( device: &ReferenceDevice<SC>, stacked_per_commit: Vec<&'a StackedPcsData<SC::F, SC::Digest>>, need_rot_per_commit: Vec<Vec<bool>>, r: &[SC::EF], lambda: SC::EF, ) -> Self
We only provide a view to the stacked
PcsData per commitment because the WHIR prover will
still use the PLE evaluations of the stacked matrices later. The order of
stacked_per_commit is common_main, preprocessed for trace_idx=0 (if any), cached_0 for trace_idx=0, ..., preprocessed for trace_idx=1 (if any), .... Read moreSource§fn batch_sumcheck_uni_round0_poly(&mut self) -> UnivariatePoly<SC::EF>
fn batch_sumcheck_uni_round0_poly(&mut self) -> UnivariatePoly<SC::EF>
Return the
s_0 batched polynomial from univariate round 0 of sumcheck.fn fold_ple_evals(&mut self, u_0: SC::EF)
fn batch_sumcheck_poly_eval( &mut self, round: usize, _u_prev: SC::EF, ) -> [SC::EF; 2]
fn fold_mle_evals(&mut self, round: usize, u_round: SC::EF)
fn into_stacked_openings(self) -> Vec<Vec<SC::EF>>
Auto Trait Implementations§
impl<'a, SC> Freeze for StackedReductionCpu<'a, SC>
impl<'a, SC> RefUnwindSafe for StackedReductionCpu<'a, SC>where
<SC as StarkProtocolConfig>::F: RefUnwindSafe,
<SC as StarkProtocolConfig>::EF: RefUnwindSafe,
<SC as StarkProtocolConfig>::Digest: RefUnwindSafe,
impl<'a, SC> Send for StackedReductionCpu<'a, SC>
impl<'a, SC> Sync for StackedReductionCpu<'a, SC>
impl<'a, SC> Unpin for StackedReductionCpu<'a, SC>
impl<'a, SC> UnsafeUnpin for StackedReductionCpu<'a, SC>
impl<'a, SC> UnwindSafe for StackedReductionCpu<'a, SC>where
<SC as StarkProtocolConfig>::F: UnwindSafe + RefUnwindSafe,
<SC as StarkProtocolConfig>::EF: UnwindSafe,
<SC as StarkProtocolConfig>::Digest: RefUnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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