pub struct EvaluationChunk<'c, P: PackedField> { /* private fields */ }Expand description
A range of the halved hypercube, prepared for the round evaluators.
Holds, over n_vars variables, the paired low/high halves of every logical column and the
eq-indicator expansion of every tracker. Each column was split on the round’s highest variable,
so a ColumnChunk’s lo and hi differ only in that variable. The range is bisected — the
highest remaining variable peeled off both halves of every column and off every eq expansion —
down to the leaves that MleStore::map_reduce hands to its map callback. A
column read by several evaluators is split a single time. Evaluators read their columns by
ColId and their eq trackers by EqId.
Implementations§
Source§impl<'c, P: PackedField> EvaluationChunk<'c, P>
impl<'c, P: PackedField> EvaluationChunk<'c, P>
Sourcepub fn col(&self, id: ColId) -> &ColumnChunk<'c, P>
pub fn col(&self, id: ColId) -> &ColumnChunk<'c, P>
Returns the low and high halves of a column at this chunk.
Sourcepub fn eq(&self, id: EqId) -> &FieldSlice<'c, P>
pub fn eq(&self, id: EqId) -> &FieldSlice<'c, P>
Returns the equality-indicator expansion of a registered tracker at this chunk.
The expansion ranges over the halved hypercube, so it is chunked with the same chunk index as the column halves.
Auto Trait Implementations§
impl<'c, P> Freeze for EvaluationChunk<'c, P>
impl<'c, P> RefUnwindSafe for EvaluationChunk<'c, P>where
P: RefUnwindSafe,
impl<'c, P> Send for EvaluationChunk<'c, P>
impl<'c, P> Sync for EvaluationChunk<'c, P>
impl<'c, P> Unpin for EvaluationChunk<'c, P>where
P: Unpin,
impl<'c, P> UnsafeUnpin for EvaluationChunk<'c, P>
impl<'c, P> UnwindSafe for EvaluationChunk<'c, P>where
P: UnwindSafe + 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
§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