pub struct OneCube;Expand description
The Boolean cube {0, 1}^n, whose per-variable basis is (1 - X, X).
That basis is the pair of Lagrange polynomials on the two vertices 0 and 1.
So the coefficient indexed by a vertex is the multilinear’s evaluation at that vertex.
Trait Implementations§
Source§impl Hypercube for OneCube
impl Hypercube for OneCube
Source§fn basis<F: FieldOps>(coord: &F) -> [F; 2]
fn basis<F: FieldOps>(coord: &F) -> [F; 2]
Evaluates the basis of one variable at a coordinate. Read more
Source§fn expand_var<F: FieldOps>(value: &F, coord: &F) -> [F; 2]
fn expand_var<F: FieldOps>(value: &F, coord: &F) -> [F; 2]
Scales the basis of one variable by a value. Read more
Source§fn contract_var<F: FieldOps>(lo: &mut F, hi: &F)
fn contract_var<F: FieldOps>(lo: &mut F, hi: &F)
Strips one variable’s basis factor from the two halves of an expansion. Read more
Source§fn eq_one_var<F: FieldOps>(x: F, y: F) -> F
fn eq_one_var<F: FieldOps>(x: F, y: F) -> F
Evaluates the equality indicator of one variable. Read more
Auto Trait Implementations§
impl Freeze for OneCube
impl RefUnwindSafe for OneCube
impl Send for OneCube
impl Sync for OneCube
impl Unpin for OneCube
impl UnsafeUnpin for OneCube
impl UnwindSafe for OneCube
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<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