Enum numeric::tensor::AxisIndex
[−]
[src]
pub enum AxisIndex { Full, Ellipsis, NewAxis, Index(isize), Slice(isize, isize), SliceFrom(isize), SliceTo(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.
Slice(isize, isize)
Specifies a half-open range. Slice(2, 5) will pick out indices 2, 3 and 4.
SliceFrom(isize)
Specifies the start (inclusive) and to the end.
SliceTo(isize)
Specifies the end (exclusive) from the start.
Trait Implementations
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