Function halo2_proofs::arithmetic::lagrange_interpolate
source · [−]pub fn lagrange_interpolate<F: FieldExt>(points: &[F], evals: &[F]) -> Vec<F>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
Expand description
Returns coefficients of an n - 1 degree polynomial given a set of n points
and their evaluations. This function will panic if two values in points
are the same.