pub struct DisjointProduct<P0, P1>(pub P0, pub P1);
Expand description
Represents a product of two multilinear polynomials over disjoint variables.
Tuple Fields§
§0: P0
§1: P1
Trait Implementations§
Source§impl<F: Field, P0, P1> MultivariatePoly<F> for DisjointProduct<P0, P1>where
P0: MultivariatePoly<F>,
P1: MultivariatePoly<F>,
impl<F: Field, P0, P1> MultivariatePoly<F> for DisjointProduct<P0, P1>where
P0: MultivariatePoly<F>,
P1: MultivariatePoly<F>,
Source§fn evaluate(&self, query: &[F]) -> Result<F, Error>
fn evaluate(&self, query: &[F]) -> Result<F, Error>
Evaluate the polynomial at a point in the extension field.
Source§fn binary_tower_level(&self) -> usize
fn binary_tower_level(&self) -> usize
Returns the maximum binary tower level of all constants in the arithmetic expression.
Source§fn erased_serialize(
&self,
write_buf: &mut dyn BufMut,
mode: SerializationMode,
) -> Result<(), SerializationError>
fn erased_serialize( &self, write_buf: &mut dyn BufMut, mode: SerializationMode, ) -> Result<(), SerializationError>
Serialize a type erased MultivariatePoly.
Since not every MultivariatePoly implements serialization, this defaults to returning an error.
Auto Trait Implementations§
impl<P0, P1> Freeze for DisjointProduct<P0, P1>
impl<P0, P1> RefUnwindSafe for DisjointProduct<P0, P1>where
P0: RefUnwindSafe,
P1: RefUnwindSafe,
impl<P0, P1> Send for DisjointProduct<P0, P1>
impl<P0, P1> Sync for DisjointProduct<P0, P1>
impl<P0, P1> Unpin for DisjointProduct<P0, P1>
impl<P0, P1> UnwindSafe for DisjointProduct<P0, P1>where
P0: UnwindSafe,
P1: 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
§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