Trait ndarray::NdIndex

source ·
pub unsafe trait NdIndex<E>: Debug { }
Expand description

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);

Implementations on Foreign Types§

source§

impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [Ix]

source§

impl NdIndex<Dim<[usize; 4]>> for [Ix; 4]

source§

impl NdIndex<Dim<[usize; 3]>> for [Ix; 3]

source§

impl NdIndex<Dim<[usize; 2]>> for (Ix, Ix)

source§

impl NdIndex<Dim<[usize; 2]>> for [Ix; 2]

source§

impl NdIndex<Dim<[usize; 5]>> for [Ix; 5]

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 4]

source§

impl NdIndex<Dim<[usize; 1]>> for [Ix; 1]

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 0]

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 5]

source§

impl NdIndex<Dim<[usize; 4]>> for (Ix, Ix, Ix, Ix)

source§

impl NdIndex<Dim<[usize; 0]>> for [Ix; 0]

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 2]

source§

impl NdIndex<Dim<[usize; 6]>> for [Ix; 6]

source§

impl NdIndex<Dim<[usize; 0]>> for ()

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 3]

source§

impl NdIndex<Dim<[usize; 5]>> for (Ix, Ix, Ix, Ix, Ix)

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 1]

source§

impl NdIndex<Dim<IxDynImpl>> for [Ix; 6]

source§

impl NdIndex<Dim<[usize; 3]>> for (Ix, Ix, Ix)

Implementors§