macro_rules! matrix_lit {
() => { ... };
(;$domain:expr) => { ... };
($x:expr) => { ... };
($x:expr;$domain:expr) => { ... };
([$($x:tt)*] $(, [$($xs:tt)*])* $(,)?) => { ... };
([$($x:tt)*] $(, [$($xs:tt)*])* ; [$domain:expr $(, $domains:expr)+ $(,)?]) => { ... };
($($x:expr),*) => { ... };
($($x:expr),*;$domain:expr) => { ... };
($($x:expr,)*) => { ... };
($($x:expr,)*;$domain:expr) => { ... };
}Expand description
Creates a new matrix Literal optionally with some index domain.
matrix_lit![a,b,c]matrix_lit![a,b,c;my_domain]matrix_lit![[a, b, c], [d, e, f]; [domain_1, domain_2]]
To create one from a (Rust) vector, use [into_matrix!].