Enum numeric::tensor::AxisIndex [] [src]

pub enum AxisIndex {
    Full,
    Ellipsis,
    NewAxis,
    Index(isize),
    StridedSlice(Option<isize>, Option<isize>, isize),
}

Used for advanced slicing of a Tensor.

Variants

Full

Indexes from start to end for this axis.

Ellipsis

Indexes from start to end for all axes in the middle. A maximum of one can be used.

NewAxis

Creates a new axis of length 1 at this location.

Index(isize)

Picks one element of an axis. This will remove that axis from the tensor.

StridedSlice(Option<isize>, Option<isize>, isize)

Makes a strided slice (start, end, step), with the same semantics as Python's Numpy. If start is specified as None, it will start from the first element if step is positive and last element if step is negative. If end is None, it will imply beyond the last element if step is positive and one before the first element if step is negative.

Trait Implementations

impl Debug for AxisIndex
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for AxisIndex
[src]

fn clone(&self) -> AxisIndex

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for AxisIndex
[src]