pub fn linspace<S, T>(start: S, end: T, length: usize) -> Vec<f64>where
    S: Into<f64> + Copy,
    T: Into<f64> + Copy,
Expand description

MATLAB like linspace

Examples

extern crate peroxide;
use peroxide::fuga::*;
 
fn main() {
    let a = linspace(1, 10, 10);
    assert_eq!(a, seq(1,10,1));
    assert_eq!(a.len(), 10);
}