(a: &[f64], b: &[f64])
| 540 | } |
| 541 | |
| 542 | fn dot(a: &[f64], b: &[f64]) -> f64 { |
| 543 | a.iter().zip(b.iter()).map(|(x, y)| x * y).sum() |
| 544 | } |
| 545 | |
| 546 | fn quad_risk(cov: &DMatrix<f64>, w: &[f64]) -> f64 { |
| 547 | let wv = DVector::from_vec(w.to_vec()); |
no outgoing calls
no test coverage detected