[][src]Function peroxide::structure::matrix::matrix

pub fn matrix<T>(v: Vec<T>, r: usize, c: usize, shape: Shape) -> Matrix where
    T: Into<f64>, 

R-like matrix constructor

Examples

extern crate peroxide;
use peroxide::*;

let a = matrix(c!(1,2,3,4), 2, 2, Row);