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

R-like matrix constructor

Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
    let a = matrix(c!(1,2,3,4), 2, 2, Row);
    a.print(); // Print matrix
}