Trait ndarray::NdIndex [−][src]
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
impl NdIndex<Dim<[usize; 0]>> for ()
[src]
fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix0) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for (Ix, Ix)
[src]
fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &Ix2) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for (Ix, Ix, Ix)
[src]
fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &Ix3) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for (Ix, Ix, Ix, Ix)
[src]
fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &Ix4) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for (Ix, Ix, Ix, Ix, Ix)
[src]
fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &Ix5) -> isize
[src]
impl NdIndex<Dim<[usize; 0]>> for [Ix; 0]
[src]
fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix0) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 0]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 1]>> for [Ix; 1]
[src]
fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix1) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 1]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for [Ix; 2]
[src]
fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix2) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 2]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for [Ix; 3]
[src]
fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix3) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 3]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for [Ix; 4]
[src]
fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix4) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 4]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for [Ix; 5]
[src]
fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix5) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 5]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<[usize; 6]>> for [Ix; 6]
[src]
fn index_checked(&self, dim: &Ix6, strides: &Ix6) -> Option<isize>
[src]
fn index_unchecked(&self, _strides: &Ix6) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 6]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [Ix]
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
Implementors
impl NdIndex<Dim<[usize; 1]>> for Ix
[src]
fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &Ix1) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 0]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 1]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 2]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 3]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 4]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 5]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 6]>
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Ix
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a IxDyn
[src]
fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<D> NdIndex<D> for D where
D: Dimension,
[src]
D: Dimension,