macro_rules! matrix {
( $( $( $x:expr ),+ ) ;+ $(;)? ) => { ... };
( $( [ $( $x:expr ),* $(,)? ] ),+ $(,)? ) => { ... };
}Expand description
Create a full dense matrix from rows. Usage:
- matrix![ [a, b, c], [d, e, f], [g, h, i] ]
- matrix![ a, b, c; d, e, f; g, h, i ]