halo2_axiom::arithmetic

Function lagrange_interpolate

Source
pub fn lagrange_interpolate<F: Field>(points: &[F], evals: &[F]) -> Vec<F>
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.