Skip to main content

compute_adjusted_weights

Function compute_adjusted_weights 

Source
pub fn compute_adjusted_weights<EF: Field>(
    point: EF,
    diff_invs: &[EF],
) -> Vec<EF>
Expand description

Subtract z^{-1} from each inverse denominator to produce adjusted barycentric weights.

§Overview

Converts raw 1/(z - x_i) values into the form needed by the zero-allocation interpolation path.

Intended to be called once per opening point z, then reused across every matrix opened at that point.

§Performance

One extension-field inversion + N parallel extension-field subtractions.

§Panics

Panics when the evaluation point is zero.

The adjusted form factors 1/z out of every weight, so it is undefined there. Coset interpolation handles that point before ever reaching this function.