Skip to main content

Axis

Trait Axis 

Source
pub trait Axis: Sealed { }
Expand description

The axis argument of operations that work along one axis (argmax, sort, the scans, take, split, concatenate, …): an i32 or usize axis (negative counts from the end), or .. for “the flattened array” where the operation has that meaning (as MLX’s axis=None); elsewhere .. fails with crate::OpErrorKind::InvalidAxis.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Axis for RangeFull

Source§

impl Axis for i32

Source§

impl Axis for usize

Source§

impl<T: Axis + ?Sized> Axis for &T

Implementors§