Skip to main content

inner_product_par

Function inner_product_par 

Source
pub fn inner_product_par<F, P, DataA, DataB>(
    a: &FieldBuffer<P, DataA>,
    b: &FieldBuffer<P, DataB>,
) -> F
where F: Field, P: PackedField<Scalar = F>, DataA: Deref<Target = [P]>, DataB: Deref<Target = [P]>,
Expand description

Sums the coefficient-by-coefficient products of two multilinears, across threads.

The value matches the single-threaded pairing. The coefficient range is split into tasks, each summing its own partial products.

ยงPreconditions

  • the two buffers must hold the same number of coefficients