pub struct UnivariatePoly<F>(/* private fields */);Expand description
Univariate polynomial in coefficient form.
Implementations§
Source§impl<F> UnivariatePoly<F>
impl<F> UnivariatePoly<F>
Source§impl<F: Field> UnivariatePoly<F>
impl<F: Field> UnivariatePoly<F>
pub fn eval_at_point<EF: ExtensionField<F>>(&self, x: EF) -> EF
Source§impl<F: Field> UnivariatePoly<F>
impl<F: Field> UnivariatePoly<F>
pub fn lagrange_interpolate<BF: Field>(points: &[BF], evals: &[F]) -> Selfwhere
F: ExtensionField<BF>,
Source§impl<F: TwoAdicField> UnivariatePoly<F>
impl<F: TwoAdicField> UnivariatePoly<F>
Sourcepub fn from_evals(evals: &[F]) -> Self
pub fn from_evals(evals: &[F]) -> Self
Constructs the polynomial in coefficient form from its evaluations on
{omega^0,...,omega^d} where d is the degree of the polynomial. Here omega is a
(fixed) generator of the two-adic subgroup of order (d+1).next_power_of_two().
Sourcepub fn from_evals_idft(evals: &[F]) -> Self
pub fn from_evals_idft(evals: &[F]) -> Self
Constructs the polynomial in coefficient form from its evaluations on a smooth subgroup of
F^* by performing inverse DFT.
Requires that evals.len() is a power of 2.
Sourcepub fn from_geometric_cosets_evals_idft<BF: Field>(
evals: RowMajorMatrix<F>,
shift: BF,
init: BF,
) -> Selfwhere
F: ExtensionField<BF>,
pub fn from_geometric_cosets_evals_idft<BF: Field>(
evals: RowMajorMatrix<F>,
shift: BF,
init: BF,
) -> Selfwhere
F: ExtensionField<BF>,
Interpolates from evaluations on cosets init * g^i D for i = 0,..,width-1 where D is
a smooth subgroup of F.
Trait Implementations§
Source§impl<F: Clone> Clone for UnivariatePoly<F>
impl<F: Clone> Clone for UnivariatePoly<F>
Source§fn clone(&self) -> UnivariatePoly<F>
fn clone(&self) -> UnivariatePoly<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F> Freeze for UnivariatePoly<F>
impl<F> RefUnwindSafe for UnivariatePoly<F>where
F: RefUnwindSafe,
impl<F> Send for UnivariatePoly<F>where
F: Send,
impl<F> Sync for UnivariatePoly<F>where
F: Sync,
impl<F> Unpin for UnivariatePoly<F>where
F: Unpin,
impl<F> UnsafeUnpin for UnivariatePoly<F>
impl<F> UnwindSafe for UnivariatePoly<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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