pub struct GrandProductWitness<'a, PW: PackedField> { /* private fields */ }
Implementations§
source§impl<'a, PW: PackedField> GrandProductWitness<'a, PW>
impl<'a, PW: PackedField> GrandProductWitness<'a, PW>
pub fn new(poly: MultilinearWitness<'a, PW>) -> Result<Self, Error>
sourcepub fn n_vars(&self) -> usize
pub fn n_vars(&self) -> usize
Returns the base-two log of the number of inputs to the GKR grand product circuit
sourcepub fn grand_product_evaluation(&self) -> PW::Scalar
pub fn grand_product_evaluation(&self) -> PW::Scalar
Returns the evaluation of the GKR grand product circuit
pub fn ith_layer_evals(&self, i: usize) -> Result<&'_ [PW::Scalar], Error>
Trait Implementations§
source§impl<'a, PW: Clone + PackedField> Clone for GrandProductWitness<'a, PW>
impl<'a, PW: Clone + PackedField> Clone for GrandProductWitness<'a, PW>
source§fn clone(&self) -> GrandProductWitness<'a, PW>
fn clone(&self) -> GrandProductWitness<'a, PW>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, PW> Freeze for GrandProductWitness<'a, PW>
impl<'a, PW> !RefUnwindSafe for GrandProductWitness<'a, PW>
impl<'a, PW> Send for GrandProductWitness<'a, PW>
impl<'a, PW> Sync for GrandProductWitness<'a, PW>
impl<'a, PW> Unpin for GrandProductWitness<'a, PW>
impl<'a, PW> !UnwindSafe for GrandProductWitness<'a, PW>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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