Skip to main content

libra_eval

Function libra_eval 

Source
pub fn libra_eval<Cube: Hypercube, F: FieldOps>(
    challenge_point: &[F],
    query_j: &[F],
    query_k: &[F],
    n_vars: usize,
    degree: usize,
) -> F
Expand description

Evaluates the multilinear with coefficients libra_eval_r over Cube at a query point.

Computes, at the query point (query_j, query_k),

Σⱼ Σₖ eq(j, query_j) · eq(k, query_k) · r[j]^k

for j < n_vars and k ≤ degree, where eq is Cube’s equality indicator. Over OneCube this is the multilinear extension of the table; over InfCube it is the multilinear whose monomial coefficients are the table.

§Arguments

  • challenge_point - The challenge point r from sumcheck (length n_vars)
  • query_j - Query point for the variable index (length m_n)
  • query_k - Query point for the power index (length m_d)
  • n_vars - Number of variables in the mask polynomial
  • degree - Degree of each univariate in the mask polynomial