1pub fn dot_product(a: Vec<f64>, b: Vec<f64>) -> f64 { 2 let mut sum = 0.0; 3 for i in 0..a.len() { 4 sum += a[i] * b[i]; 5 } 6 sum 7}