pub struct TwoAdicFriFolding<InputProof, InputError>(pub PhantomData<(InputProof, InputError)>);Tuple Fields§
§0: PhantomData<(InputProof, InputError)>Trait Implementations§
Source§impl<F: TwoAdicField, InputProof, InputError: Debug, EF: ExtensionField<F>> FriFoldingStrategy<F, EF> for TwoAdicFriFolding<InputProof, InputError>
impl<F: TwoAdicField, InputProof, InputError: Debug, EF: ExtensionField<F>> FriFoldingStrategy<F, EF> for TwoAdicFriFolding<InputProof, InputError>
type InputProof = InputProof
type InputError = InputError
Source§fn extra_query_index_bits(&self) -> usize
fn extra_query_index_bits(&self) -> usize
We can ask FRI to sample extra query bits (LSB) for our own purposes.
They will be passed to our callbacks, but ignored (shifted off) by FRI.
Source§fn fold_row(
&self,
index: usize,
log_height: usize,
beta: EF,
evals: impl Iterator<Item = EF>,
) -> EF
fn fold_row( &self, index: usize, log_height: usize, beta: EF, evals: impl Iterator<Item = EF>, ) -> EF
Fold a row, returning a single column.
Right now the input row will always be 2 columns wide,
but we may support higher folding arity in the future.
Source§fn fold_matrix<M: Matrix<EF>>(&self, beta: EF, m: M) -> Vec<EF>
fn fold_matrix<M: Matrix<EF>>(&self, beta: EF, m: M) -> Vec<EF>
Same as applying fold_row to every row, possibly faster.
Auto Trait Implementations§
impl<InputProof, InputError> Freeze for TwoAdicFriFolding<InputProof, InputError>
impl<InputProof, InputError> RefUnwindSafe for TwoAdicFriFolding<InputProof, InputError>where
InputProof: RefUnwindSafe,
InputError: RefUnwindSafe,
impl<InputProof, InputError> Send for TwoAdicFriFolding<InputProof, InputError>
impl<InputProof, InputError> Sync for TwoAdicFriFolding<InputProof, InputError>
impl<InputProof, InputError> Unpin for TwoAdicFriFolding<InputProof, InputError>
impl<InputProof, InputError> UnwindSafe for TwoAdicFriFolding<InputProof, InputError>where
InputProof: UnwindSafe,
InputError: 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> 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