pub struct ShapeEvaluator<'a, F> { /* private fields */ }Expand description
One table’s fixed shapes at one point, sharing residue sums and eq tables across the shapes.
Implementations§
Source§impl<'a, F: HardwareField> ShapeEvaluator<'a, F>
impl<'a, F: HardwareField> ShapeEvaluator<'a, F>
pub fn new(r: &'a [Flat<F>]) -> Self
Sourcepub fn evaluate(&mut self, shape: &FixedShape<F>) -> Flat<F>
pub fn evaluate(&mut self, shape: &FixedShape<F>) -> Flat<F>
MLE of shape at the point; equals
FixedShape::evaluate on every input.
Auto Trait Implementations§
impl<'a, F> Freeze for ShapeEvaluator<'a, F>
impl<'a, F> RefUnwindSafe for ShapeEvaluator<'a, F>where
&'a [Flat<F>]: RefUnwindSafe,
Option<EqTables<F>>: RefUnwindSafe,
BTreeMap<(usize, usize), Vec<Flat<F>>>: RefUnwindSafe,
impl<'a, F> Send for ShapeEvaluator<'a, F>
impl<'a, F> Sync for ShapeEvaluator<'a, F>
impl<'a, F> Unpin for ShapeEvaluator<'a, F>
impl<'a, F> UnsafeUnpin for ShapeEvaluator<'a, F>where
&'a [Flat<F>]: UnsafeUnpin,
Option<EqTables<F>>: UnsafeUnpin,
BTreeMap<(usize, usize), Vec<Flat<F>>>: UnsafeUnpin,
impl<'a, F> UnwindSafe for ShapeEvaluator<'a, F>where
&'a [Flat<F>]: UnwindSafe,
Option<EqTables<F>>: UnwindSafe,
BTreeMap<(usize, usize), Vec<Flat<F>>>: UnwindSafe,
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> 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