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

Indexes from start to end for this axis.

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

Creates a new axis of length 1 at this location.

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

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 Copy for AxisIndex
[src]

impl Clone for AxisIndex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AxisIndex
[src]

Formats the value using the given formatter.