(a: &[f64], b: &[f64])
| 189 | } |
| 190 | |
| 191 | fn dot(a: &[f64], b: &[f64]) -> f64 { |
| 192 | a.iter().zip(b.iter()).map(|(x, y)| x * y).sum() |
| 193 | } |
| 194 | |
| 195 | fn quad_risk(cov: &DMatrix<f64>, w: &[f64]) -> f64 { |
| 196 | let wv = DVector::from_vec(w.to_vec()); |
no outgoing calls
no test coverage detected