Function compute_inner_product

Source
pub fn compute_inner_product<F: Field>(a: &[F], b: &[F]) -> F
Expand description

This computes the inner product of two vectors a and b.

This function will panic if the two vectors are not the same size. For vectors smaller than 32 elements, it uses sequential computation for better performance. For larger vectors, it switches to parallel computation.