pub struct ZerofierOnCoset<F: Field> { /* private fields */ }
Expand description
Precomputations of the evaluation of Z_H(X) = X^n - 1
on a coset s K
with H <= K
.
Implementations§
Source§impl<F: TwoAdicField> ZerofierOnCoset<F>
impl<F: TwoAdicField> ZerofierOnCoset<F>
pub fn new(log_n: usize, rate_bits: usize, coset_shift: F) -> Self
Sourcepub fn eval_inverse(&self, i: usize) -> F
pub fn eval_inverse(&self, i: usize) -> F
Returns 1 / Z_H(g * w^i)
.
Sourcepub fn eval_inverse_packed<P: PackedField<Scalar = F>>(
&self,
i_start: usize,
) -> P
pub fn eval_inverse_packed<P: PackedField<Scalar = F>>( &self, i_start: usize, ) -> P
Like eval_inverse
, but for a range of indices starting with i_start
.
Sourcepub fn lagrange_basis_unnormalized(&self, i: usize) -> Vec<F>
pub fn lagrange_basis_unnormalized(&self, i: usize) -> Vec<F>
Evaluate the Langrange basis polynomial, L_i(x) = Z_H(x) / (x - g_H^i)
, on our coset s K
.
Here L_i(x)
is unnormalized in the sense that it evaluates to some nonzero value at g_H^i
,
not necessarily 1.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for ZerofierOnCoset<F>where
F: Freeze,
impl<F> RefUnwindSafe for ZerofierOnCoset<F>where
F: RefUnwindSafe,
impl<F> Send for ZerofierOnCoset<F>
impl<F> Sync for ZerofierOnCoset<F>
impl<F> Unpin for ZerofierOnCoset<F>where
F: Unpin,
impl<F> UnwindSafe for ZerofierOnCoset<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> 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