Trait ndarray::NdIndex
[−]
[src]
pub unsafe trait NdIndex { type Dim: Dimension; }
A tuple or fixed size array that can be used to index an array.
use ndarray::arr2; let mut a = arr2(&[[0, 1], [0, 0]]); a[[1, 1]] = 1; assert_eq!(a[[0, 1]], 1); assert_eq!(a[[1, 1]], 1);
Note the blanket implementation that's not visible in rustdoc:
impl<D> NdIndex for D where D: Dimension { ... }