use nalgebra::base::*; /// `` pub type Mat = Matrix, Const, ArrayStorage>; pub type Vect = Matrix, U1, ArrayStorage>; pub fn max(l: &[f64]) -> f64 { let mut m = l[0]; for &i in &l[1..] { if i > m { m = i; } } m }