[][src]Macro mathru::matrix

macro_rules! matrix {
    ($( $( $x: expr ),*);*) => { ... };
}

Macro to construct matrices

#[macro_use]
extern crate mathru;
fn main()
{
    use mathru::algebra::linear::Matrix;

    // Construct a 2x3 matrix of f32
    let mat: Matrix<f32> = matrix![1.0, 2.0, 3.0; 4.0, 5.0, 6.0];
}