pub struct EqIndPartialEval<F: Field> { /* private fields */ }
Expand description
Represents the MLE of the eq(X, Y) polynomial on 2*n_vars variables partially evaluated at Y = r
Recall that the multilinear polynomial eq(X, Y) is defined s.t. $\forall x, y \in {0, 1}^{\mu}$, eq(x, y) = 1 iff x = y and eq(x, y) = 0 otherwise. Specifically, the function is defined like so $\prod_{i=0}^{\mu - 1} (X_i * Y_i + (1 - X_i)(1-Y_i))$
Implementations§
source§impl<F: Field> EqIndPartialEval<F>
impl<F: Field> EqIndPartialEval<F>
pub fn new(n_vars: usize, r: Vec<F>) -> Result<Self, Error>
pub fn multilinear_extension<P: PackedField<Scalar = F>, Backend: ComputationBackend>( &self, backend: Backend, ) -> Result<MultilinearExtension<P, Backend::Vec<P>>, Error>
Trait Implementations§
source§impl<F: TowerField, P: PackedField<Scalar = F>> MultivariatePoly<P> for EqIndPartialEval<F>
impl<F: TowerField, P: PackedField<Scalar = F>> MultivariatePoly<P> for EqIndPartialEval<F>
Auto Trait Implementations§
impl<F> Freeze for EqIndPartialEval<F>
impl<F> RefUnwindSafe for EqIndPartialEval<F>
impl<F> Send for EqIndPartialEval<F>
impl<F> Sync for EqIndPartialEval<F>
impl<F> Unpin for EqIndPartialEval<F>
impl<F> UnwindSafe for EqIndPartialEval<F>
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