macro_rules! matrix {
() => { ... };
(;$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 AbstractLiteral optionally with some index domain.
matrix![a,b,c]matrix![a,b,c;my_domain]matrix![[a, b, c], [d, e, f]]matrix![[a, b, c], [d, e, f]; [domain_1, domain_2]]
To create one from a (Rust) vector, use [into_matrix!].
To create a matrix Literal (wrapping elements with Literal::from), use matrix_lit!.