Trait ndarray::NdIndex [] [src]

pub unsafe trait NdIndex<E>: Debug {
    fn index_unchecked(&self, strides: &E) -> isize;
}

Tuple or fixed size arrays that can be used to index an array.

use ndarray::arr2;

let mut a = arr2(&[[0, 1],
                   [2, 3]]);
assert_eq!(a[[0, 1]], 1);
assert_eq!(a[[1, 1]], 3);
a[[1, 1]] += 1;
assert_eq!(a[(1, 1)], 4);

Required Methods

Implementors