pub fn linspace(start: f64, end: f64, n: usize) -> Vec<f64>Expand description
Creates linearly spaced grid between start and end of size n
assert_eq!(vec![1.0, 2.0, 3.0], linspace(1.0, 3.0, 3));
assert_eq!(vec![3.0, 2.0, 1.0], linspace(3.0, 1.0, 3));
assert_eq!(vec![3.0, 3.0, 3.0], linspace(3.0, 3.0, 3));ยงPanics
If number of points n is 0 or 1