pub struct TwoAdicFriGenericConfig<InputProof, InputError>(pub PhantomData<(InputProof, InputError)>);
Tuple Fields§
§0: PhantomData<(InputProof, InputError)>
Trait Implementations§
Source§impl<F: TwoAdicField, InputProof, InputError: Debug> FriGenericConfig<F> for TwoAdicFriGenericConfig<InputProof, InputError>
impl<F: TwoAdicField, InputProof, InputError: Debug> FriGenericConfig<F> for TwoAdicFriGenericConfig<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: F,
evals: impl Iterator<Item = F>,
) -> F
fn fold_row( &self, index: usize, log_height: usize, beta: F, evals: impl Iterator<Item = F>, ) -> F
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<F>>(&self, beta: F, m: M) -> Vec<F>
fn fold_matrix<M: Matrix<F>>(&self, beta: F, m: M) -> Vec<F>
Same as applying fold_row to every row, possibly faster.
Auto Trait Implementations§
impl<InputProof, InputError> Freeze for TwoAdicFriGenericConfig<InputProof, InputError>
impl<InputProof, InputError> RefUnwindSafe for TwoAdicFriGenericConfig<InputProof, InputError>where
InputProof: RefUnwindSafe,
InputError: RefUnwindSafe,
impl<InputProof, InputError> Send for TwoAdicFriGenericConfig<InputProof, InputError>
impl<InputProof, InputError> Sync for TwoAdicFriGenericConfig<InputProof, InputError>
impl<InputProof, InputError> Unpin for TwoAdicFriGenericConfig<InputProof, InputError>
impl<InputProof, InputError> UnwindSafe for TwoAdicFriGenericConfig<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