common_function::scalars::vector::distance::dot

Function dot

source
pub fn dot(lhs: &[f32], rhs: &[f32]) -> f32
Expand description

Calculates the dot product between two vectors.

Note: Must ensure that the length of the two vectors are the same.