pub struct LagrangeRoundEvals<F: Field> {
pub zeros_prefix_len: usize,
pub evals: Vec<F>,
}
Expand description
A univariate polynomial in Lagrange basis.
The coefficient at position i
in the lagrange_coeffs
corresponds to evaluation
at i+zeros_prefix_len
-th field element of some agreed upon domain. Coefficients
at positions 0..zeros_prefix_len
are zero. Addition of Lagrange basis representations
only makes sense for the polynomials in the same domain.
Fields§
§zeros_prefix_len: usize
§evals: Vec<F>
Implementations§
source§impl<F: Field> LagrangeRoundEvals<F>
impl<F: Field> LagrangeRoundEvals<F>
sourcepub fn zeros(zeros_prefix_len: usize) -> Self
pub fn zeros(zeros_prefix_len: usize) -> Self
A Lagrange representation of a zero polynomial, on a given domain.
sourcepub fn isomorphic<FI: Field + From<F>>(self) -> LagrangeRoundEvals<FI>
pub fn isomorphic<FI: Field + From<F>>(self) -> LagrangeRoundEvals<FI>
Representation in an isomorphic field.
sourcepub fn add_assign_lagrange(&mut self, rhs: &Self) -> Result<(), Error>
pub fn add_assign_lagrange(&mut self, rhs: &Self) -> Result<(), Error>
An assigning addition of two polynomials in Lagrange basis. May fail,
thus it’s not simply an AddAssign
overload due to signature mismatch.
Trait Implementations§
source§impl<F: Clone + Field> Clone for LagrangeRoundEvals<F>
impl<F: Clone + Field> Clone for LagrangeRoundEvals<F>
source§fn clone(&self) -> LagrangeRoundEvals<F>
fn clone(&self) -> LagrangeRoundEvals<F>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Field> Mul<F> for LagrangeRoundEvals<F>
impl<F: Field> Mul<F> for LagrangeRoundEvals<F>
source§impl<F: Field> MulAssign<F> for LagrangeRoundEvals<F>
impl<F: Field> MulAssign<F> for LagrangeRoundEvals<F>
source§fn mul_assign(&mut self, rhs: F)
fn mul_assign(&mut self, rhs: F)
Performs the
*=
operation. Read moreAuto Trait Implementations§
impl<F> Freeze for LagrangeRoundEvals<F>
impl<F> RefUnwindSafe for LagrangeRoundEvals<F>
impl<F> Send for LagrangeRoundEvals<F>
impl<F> Sync for LagrangeRoundEvals<F>
impl<F> Unpin for LagrangeRoundEvals<F>
impl<F> UnwindSafe for LagrangeRoundEvals<F>
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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