TODO handling of NaN and stuff like this
(a: &[f64])
| 13 | |
| 14 | // TODO handling of NaN and stuff like this |
| 15 | fn compute(a: &[f64]) -> f64 { |
| 16 | unsafe { |
| 17 | cblas_dnrm2( |
| 18 | a.len() as libc::c_int, |
| 19 | a.as_ptr() as *const libc::c_double, |
| 20 | 1 as libc::c_int |
| 21 | ) |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | impl Norm<f32> for L2Norm { |