pub fn evaluate_query_set<'a, F: Field>(
    polys: impl IntoIterator<Item = &'a LabeledPolynomial<'a, F>>,
    query_set: &QuerySet<'a, F>,
) -> Evaluations<'a, F> {
    let polys = BTreeMap::from_iter(polys.into_iter().map(|p| (p.label(), p)));
    let mut evaluations = Evaluations::new();
    for (label, point) in query_set {
        let poly = polys.get(label).expect("polynomial in evaluated lc is not found");
        let eval = poly.evaluate(*point);
        evaluations.insert((label.clone(), *point), eval);
    }
    evaluations
}
/// Evaluate the given polynomials at `query_set`.
Evaluate the given polynomials at `query_set`.
Evaluate the given polynomials at ` query_set ` .
pub fn evaluate_query_set<'a, F: Field>(
    polys: impl IntoIterator<Item = &'a LabeledPolynomial<'a, F>>,
    query_set: &QuerySet<'a, F>,
) -> Evaluations<'a, F> {
    let polys = BTreeMap::from_iter(polys.into_iter().map(|p| (p.label(), p)));
    let mut evaluations = Evaluations::new();
    for (label, point) in query_set {
        let poly = polys.get(label).expect("polynomial in evaluated lc is not found");
        let eval = poly.evaluate(*point);
        evaluations.insert((label.clone(), *point), eval);
    }
    evaluations
}
pub fn evaluate_query_set < ' a , F : Field > ( polys : impl IntoIterator < Item = & ' a LabeledPolynomial < ' a , F > > , query_set : & QuerySet < ' a , F > , ) -> Evaluations < ' a , F > { let polys = BTreeMap :: from_iter ( polys . into_iter ( ) . map ( | p | ( p . label ( ) , p ) ) ) ; let mut evaluations = Evaluations :: new ( ) ; for ( label , point ) in query_set { let poly = polys . get ( label ) . expect ( " " ) ; let eval = poly . evaluate ( * point ) ; evaluations . insert ( ( label . clone ( ) , * point ) , eval ) ; } evaluations }
Evaluate the given polynomials at `query_set`.
Evaluate the given polynomials at ` query_set ` .
polys
impl IntoIterator<Item = &'a LabeledPolynomial<'a, F>>
query_set
&QuerySet<'a, F>
polys
impl IntoIterator<Item = &'a LabeledPolynomial<'a, F>>
query_set
&QuerySet<'a, F>