pub struct VirtualPairCol<F: Field> { /* private fields */ }
Expand description
An affine function over columns in a PAIR.
Implementations§
Source§impl<F: Field> VirtualPairCol<F>
impl<F: Field> VirtualPairCol<F>
pub const ONE: Self = _
pub const fn new(column_weights: Vec<(PairCol, F)>, constant: F) -> Self
pub fn new_preprocessed(column_weights: Vec<(usize, F)>, constant: F) -> Self
pub fn new_main(column_weights: Vec<(usize, F)>, constant: F) -> Self
pub const fn constant(x: F) -> Self
pub fn single(column: PairCol) -> Self
pub fn single_preprocessed(column: usize) -> Self
pub fn single_main(column: usize) -> Self
pub fn sum_main(columns: Vec<usize>) -> Self
pub fn sum_preprocessed(columns: Vec<usize>) -> Self
Sourcepub fn diff_preprocessed(a_col: usize, b_col: usize) -> Self
pub fn diff_preprocessed(a_col: usize, b_col: usize) -> Self
a - b
, where a
and b
are columns in the preprocessed trace.
Sourcepub fn diff_main(a_col: usize, b_col: usize) -> Self
pub fn diff_main(a_col: usize, b_col: usize) -> Self
a - b
, where a
and b
are columns in the main trace.
pub fn apply<Expr, Var>(&self, preprocessed: &[Var], main: &[Var]) -> Expr
Trait Implementations§
Source§impl<F: Clone + Field> Clone for VirtualPairCol<F>
impl<F: Clone + Field> Clone for VirtualPairCol<F>
Source§fn clone(&self) -> VirtualPairCol<F>
fn clone(&self) -> VirtualPairCol<F>
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 moreAuto Trait Implementations§
impl<F> Freeze for VirtualPairCol<F>where
F: Freeze,
impl<F> RefUnwindSafe for VirtualPairCol<F>where
F: RefUnwindSafe,
impl<F> Send for VirtualPairCol<F>
impl<F> Sync for VirtualPairCol<F>
impl<F> Unpin for VirtualPairCol<F>where
F: Unpin,
impl<F> UnwindSafe for VirtualPairCol<F>where
F: 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
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
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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