Type Alias ndarray::Ix

source ·
pub type Ix = u32;
Expand description

Array index type

Trait Implementations§

source§

impl Dimension for Ix

source§

fn stride_offset(index: &Ix, stride: &Ix) -> isize

Self is an index, return the stride offset

source§

fn stride_offset_checked(&self, stride: &Ix, index: &Ix) -> Option<isize>

Return stride offset for this dimension and index.

source§

fn ndim(&self) -> usize

source§

fn size(&self) -> usize

source§

fn first_index(&self) -> Option<Ix>

source§

fn next_for(&self, index: Ix) -> Option<Ix>

Iteration – Use self as size, and return next index after index or None if there are no more.
source§

fn slice(&self) -> &[Ix]

source§

fn slice_mut(&mut self) -> &mut [Ix]

source§

fn default_strides(&self) -> Self

source§

fn do_slices(dim: &mut Self, strides: &mut Self, slices: &[Si]) -> isize

Modify dimension, strides and return data pointer offset Read more
source§

impl RemoveAxis for Ix

§

type Smaller = ()

source§

fn remove_axis(&self, axis: usize)