Function peroxide::structure::matrix::ml_matrix

source ·
pub fn ml_matrix(s: &str) -> Matrix
Expand description

Matlab-like matrix constructor

§Examples

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

fn main() {
    let a = ml_matrix("1 2; 3 4");
    let b = matrix(c!(1,2,3,4), 2, 2, Row);
    assert_eq!(a, b);
}