Struct folding::instance_witness::RelaxedWitness
source · pub struct RelaxedWitness<G: CommitmentCurve, W: Witness<G>> {
pub extended_witness: ExtendedWitness<G, W>,
pub error_vec: Evaluations<G::ScalarField, Radix2EvaluationDomain<G::ScalarField>>,
}
Fields§
§extended_witness: ExtendedWitness<G, W>
The original witness, extended with the columns added by quadriticization.
error_vec: Evaluations<G::ScalarField, Radix2EvaluationDomain<G::ScalarField>>
The error vector, introduced when homogenizing the polynomials.
For degree 3 folding, it is E1 - c T1 - c^2 T2 + c^3 E2
Implementations§
source§impl<G: CommitmentCurve, W: Witness<G>> RelaxedWitness<G, W>
impl<G: CommitmentCurve, W: Witness<G>> RelaxedWitness<G, W>
sourcepub fn get_extended_column(
&self,
i: &usize
) -> Option<&Evaluations<G::ScalarField, Radix2EvaluationDomain<G::ScalarField>>>
pub fn get_extended_column( &self, i: &usize ) -> Option<&Evaluations<G::ScalarField, Radix2EvaluationDomain<G::ScalarField>>>
Provides access to the extra columns added by quadraticization
Trait Implementations§
source§impl<G: Clone + CommitmentCurve, W: Clone + Witness<G>> Clone for RelaxedWitness<G, W>where
G::ScalarField: Clone,
impl<G: Clone + CommitmentCurve, W: Clone + Witness<G>> Clone for RelaxedWitness<G, W>where G::ScalarField: Clone,
source§fn clone(&self) -> RelaxedWitness<G, W>
fn clone(&self) -> RelaxedWitness<G, W>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<G: Debug + CommitmentCurve, W: Debug + Witness<G>> Debug for RelaxedWitness<G, W>where
G::ScalarField: Debug,
impl<G: Debug + CommitmentCurve, W: Debug + Witness<G>> Debug for RelaxedWitness<G, W>where G::ScalarField: Debug,
source§impl<G: CommitmentCurve, W: Witness<G>> Foldable<<G as AffineRepr>::ScalarField> for RelaxedWitness<G, W>
impl<G: CommitmentCurve, W: Witness<G>> Foldable<<G as AffineRepr>::ScalarField> for RelaxedWitness<G, W>
A relaxed/homogenized witness can be folded.
source§impl<G: CommitmentCurve, W: Witness<G>> RelaxableWitness<G, W> for RelaxedWitness<G, W>
impl<G: CommitmentCurve, W: Witness<G>> RelaxableWitness<G, W> for RelaxedWitness<G, W>
fn relax( self, _zero_poly: &Evaluations<G::ScalarField, Radix2EvaluationDomain<G::ScalarField>> ) -> RelaxedWitness<G, W>
Auto Trait Implementations§
impl<G, W> RefUnwindSafe for RelaxedWitness<G, W>where W: RefUnwindSafe, <G as AffineRepr>::ScalarField: RefUnwindSafe,
impl<G, W> Send for RelaxedWitness<G, W>where W: Send,
impl<G, W> Sync for RelaxedWitness<G, W>where W: Sync,
impl<G, W> Unpin for RelaxedWitness<G, W>where W: Unpin, <G as AffineRepr>::ScalarField: Unpin,
impl<G, W> UnwindSafe for RelaxedWitness<G, W>where W: UnwindSafe, <G as AffineRepr>::ScalarField: UnwindSafe + RefUnwindSafe,
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