Skip to main content

Dimension

Trait Dimension 

Source
pub trait Dimension: Dimension {
    type Arr<T: Clone + Copy + Default>: DimArr<T>;
}
Available on crate feature ndarray only.
Expand description

An extension to ndarray::Dimension for dimensions used to convert to/from Tensors.

Required Associated Types§

Source

type Arr<T: Clone + Copy + Default>: DimArr<T>

The array type that holds the sizes, dim order and strides of the tensor.

Can be either a fixed size array (supported without alloc) or a dynamic array (vector).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Dimension for IxDyn

Available on crate feature alloc only.
Source§

type Arr<T: Clone + Copy + Default> = Vec<T>

Implementors§