Function hacspec_halo2::lagrange_basis
source · Expand description
Finds the Lagrange basis for a set of points
and a single evaluation point x
This will produce a polynomial that evaluates to 1 at x
and to 0 at all other x-values in the set points
No other guarentees are given about the resulting polynomial
Arguments
points
is a sequence of points(Fp,Fp)
whose x-values the polynomial wil evaluate to 0 atx
is the x-value where the polynomial will evaluate to 1. Ifx
is also inpoints
the polynomial will still evaluate to 1 at `x``
Assertions
- No two points may have the same x-value