Skip to main content

vector_dot_f32

Function vector_dot_f32 

Source
pub fn vector_dot_f32(a: &[f32], b: &[f32]) -> f32
Expand description

Dot product: sum(a[i] * b[i])

ยงPanics

Panics if a and b do not have the same length.