Macro matrix

Source
macro_rules! matrix {
    () => { ... };
    (;$domain:expr) => { ... };
    ($x:expr) => { ... };
    ($x:expr;$domain: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]

To create one from a (Rust) vector, use [into_matrix!].