pub struct PolynomialVector<F> { /* private fields */ }Implementations§
Source§impl<F: FieldNTT> PolynomialVector<F>
impl<F: FieldNTT> PolynomialVector<F>
Sourcepub fn evaluate(self) -> EvaluationVector<F>
pub fn evaluate(self) -> EvaluationVector<F>
Evaluate each polynomial in this vector over all points in an interpolation domain.
Source§impl<F> PolynomialVector<F>
impl<F> PolynomialVector<F>
Sourcepub fn coefficients_up_to(&self, n: usize) -> impl Iterator<Item = &[F]>
pub fn coefficients_up_to(&self, n: usize) -> impl Iterator<Item = &[F]>
Iterate over up to n rows of this vector.
For example, given polynomials:
a0 + a1 X + a2 X^2 + … b0 + b1 X + b2 X^2 + …
This will return:
a0 b0 a1 b1 …
up to n times.
Trait Implementations§
Source§impl<F: Clone> Clone for PolynomialVector<F>
impl<F: Clone> Clone for PolynomialVector<F>
Source§fn clone(&self) -> PolynomialVector<F>
fn clone(&self) -> PolynomialVector<F>
Returns a duplicate 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 moreSource§impl<F: Debug> Debug for PolynomialVector<F>
impl<F: Debug> Debug for PolynomialVector<F>
Source§impl<F: PartialEq> PartialEq for PolynomialVector<F>
impl<F: PartialEq> PartialEq for PolynomialVector<F>
impl<F> StructuralPartialEq for PolynomialVector<F>
Auto Trait Implementations§
impl<F> Freeze for PolynomialVector<F>
impl<F> RefUnwindSafe for PolynomialVector<F>where
F: RefUnwindSafe,
impl<F> Send for PolynomialVector<F>where
F: Send,
impl<F> Sync for PolynomialVector<F>where
F: Sync,
impl<F> Unpin for PolynomialVector<F>where
F: Unpin,
impl<F> UnsafeUnpin for PolynomialVector<F>
impl<F> UnwindSafe for PolynomialVector<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§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