ndarray/dimension/
macros.rs

1/// Indexing macro for Dim<[usize; N]> this
2/// gets the index at `$i` in the underlying array
3macro_rules! get {
4    ($dim:expr, $i:expr) => {
5        (*$dim.ix())[$i]
6    };
7}
8macro_rules! getm {
9    ($dim:expr, $i:expr) => {
10        (*$dim.ixm())[$i]
11    };
12}