Function peroxide::structure::matrix::matrix

source ·
pub fn matrix<T>(v: Vec<T>, x: usize, y: usize, shape: Shape) -> Matrixwhere
    T: Into<f64>,
Expand description

R-like matrix constructor

Examples

extern crate peroxide;
use peroxide::*;

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