Skip to main content

build_next_c_r_mle

Function build_next_c_r_mle 

Source
pub fn build_next_c_r_mle<C: SemiringConfig>(
    cfg: &C,
    r: &[C::Element],
    c: usize,
) -> Result<DenseMultilinearExtension<C::Element>, ArithErrors>
Expand description

Build the shift selector MLE next_c_mle(r, *) with the first num_vars variables fixed to r.

For each b in {0,1}^{num_vars}: next_c_mle(b) = eq(r, b - c) if b >= c next_c_mle(b) = 0 if b < c

Uses the identity next_c_mle(r, b) = eq(r, b - c) for b >= c and 0 for b < c.