pub struct LagrangeBasisEvaluations<F> { /* private fields */ }
Expand description
The evaluations of all normalized lagrange basis polynomials at a given
point. Can be used to evaluate an Evaluations
form polynomial at that point.
Implementations§
source§impl<F: FftField> LagrangeBasisEvaluations<F>
impl<F: FftField> LagrangeBasisEvaluations<F>
sourcepub fn evaluate<D: EvaluationDomain<F>>(&self, p: &Evaluations<F, D>) -> Vec<F>
pub fn evaluate<D: EvaluationDomain<F>>(&self, p: &Evaluations<F, D>) -> Vec<F>
Given the evaluations form of a polynomial, directly evaluate that polynomial at a point.
sourcepub fn evaluate_boolean<D: EvaluationDomain<F>>(
&self,
p: &Evaluations<F, D>
) -> Vec<F>
pub fn evaluate_boolean<D: EvaluationDomain<F>>( &self, p: &Evaluations<F, D> ) -> Vec<F>
Given the evaluations form of a polynomial, directly evaluate that polynomial at a point, assuming that the given evaluations are either 0 or 1 at every point of the domain.
pub fn new( max_poly_size: usize, domain: D<F>, x: F ) -> LagrangeBasisEvaluations<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for LagrangeBasisEvaluations<F>where F: RefUnwindSafe,
impl<F> Send for LagrangeBasisEvaluations<F>where F: Send,
impl<F> Sync for LagrangeBasisEvaluations<F>where F: Sync,
impl<F> Unpin for LagrangeBasisEvaluations<F>where F: Unpin,
impl<F> UnwindSafe for LagrangeBasisEvaluations<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