pub struct EqTracker<P: PackedField> { /* private fields */ }Expand description
Equality-indicator state for one point, holding the expansion as one buffer.
A shared column store keeps this shape. Its expansion is read in the same chunks as the columns beside it.
Implementations§
Source§impl<F: Field, P: PackedField<Scalar = F>> EqTracker<P>
impl<F: Field, P: PackedField<Scalar = F>> EqTracker<P>
Sourcepub fn new(eval_point: &[F]) -> Self
pub fn new(eval_point: &[F]) -> Self
Expands the indicator for every coordinate of eval_point bar the highest.
Sourcepub fn eval_point(&self) -> &[F]
pub fn eval_point(&self) -> &[F]
Returns the whole point, including coordinates already bound.
Sourcepub fn next_coordinate(&self) -> F
pub fn next_coordinate(&self) -> F
Returns the coordinate of the variable the next round binds.
Sourcepub const fn eq_prefix_eval(&self) -> F
pub const fn eq_prefix_eval(&self) -> F
Returns the product of equality terms over the coordinates already bound.
Sourcepub const fn expansion(&self) -> &FieldBuffer<P>
pub const fn expansion(&self) -> &FieldBuffer<P>
Returns the expansion over the coordinates no round has reached.
Sourcepub const fn expansion_mut(&mut self) -> &mut FieldBuffer<P>
pub const fn expansion_mut(&mut self) -> &mut FieldBuffer<P>
Returns the expansion for a caller that contracts the values itself.
Sourcepub fn fold(&mut self, challenge: F)
pub fn fold(&mut self, challenge: F)
Advances one round, contracting the expansion onto the coordinates that remain.
Sourcepub fn truncate_one_var(&mut self, challenge: F)
pub fn truncate_one_var(&mut self, challenge: F)
Advances one round over values the caller has already contracted.
A fused read pass sums the halves during its own traversal. Only the bookkeeping is then owed, so the stale tail is dropped.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for EqTracker<P>
impl<P> RefUnwindSafe for EqTracker<P>
impl<P> Send for EqTracker<P>
impl<P> Sync for EqTracker<P>
impl<P> Unpin for EqTracker<P>
impl<P> UnsafeUnpin for EqTracker<P>
impl<P> UnwindSafe for EqTracker<P>
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
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> ⓘ
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> ⓘ
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