pub enum SumcheckMultilinear<P, M>where
P: PackedField,
M: MultilinearPoly<P>,{
Transparent {
multilinear: M,
switchover_round: usize,
const_suffix: (P::Scalar, usize),
},
Folded {
large_field_folded_evals: Vec<P>,
suffix_eval: P::Scalar,
},
}
Expand description
An individual multilinear polynomial in a multivariate composite.
Variants§
Transparent
Small field multilinear - to be folded into large field at switchover
round
A suffix of constant scalars at the end is provided via const_suffix
hint.
Folded
Large field multilinear - halved in size each round
If length is less than expected one for the current round, pad with suffix_eval
scalars.
Implementations§
Source§impl<P: PackedField, M: MultilinearPoly<P>> SumcheckMultilinear<P, M>
impl<P: PackedField, M: MultilinearPoly<P>> SumcheckMultilinear<P, M>
pub fn transparent( multilinear: M, switchover_fn: &impl Fn(usize) -> usize, ) -> Self
pub fn folded(large_field_folded_evals: Vec<P>) -> Self
pub fn const_suffix(&self, n_vars: usize) -> (P::Scalar, usize)
pub fn update_const_suffix( &mut self, n_vars: usize, new_const_suffix: (P::Scalar, usize), )
Trait Implementations§
Source§impl<P, M> Clone for SumcheckMultilinear<P, M>
impl<P, M> Clone for SumcheckMultilinear<P, M>
Source§fn clone(&self) -> SumcheckMultilinear<P, M>
fn clone(&self) -> SumcheckMultilinear<P, M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<P, M> Freeze for SumcheckMultilinear<P, M>
impl<P, M> RefUnwindSafe for SumcheckMultilinear<P, M>
impl<P, M> Send for SumcheckMultilinear<P, M>where
M: Send,
impl<P, M> Sync for SumcheckMultilinear<P, M>where
M: Sync,
impl<P, M> Unpin for SumcheckMultilinear<P, M>
impl<P, M> UnwindSafe for SumcheckMultilinear<P, M>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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