Skip to main content

nd

Macro nd 

Source
macro_rules! nd {
    ($($sel:expr),+ $(,)?) => { ... };
}
Expand description

Build an axis-selection slice from mixed indices and ranges.

Each entry is any DataSelector - a single index collapses the dimension, and a contiguous range keeps it.

§Example

arr.slice(nd![0..3, 2, 1..4])