Trait mtl::traits::ArrayShape
[−]
[src]
pub trait ArrayShape { fn to_shape_vec(&self) -> Vec<usize>; fn ndim(&self) -> usize { ... } fn nelem(&self) -> usize { ... } }
array shape for creating Array
Required Methods
fn to_shape_vec(&self) -> Vec<usize>
Provided Methods
Implementors
impl<'a, S: ArrayShape + ?Sized> ArrayShape for &'a S
impl ArrayShape for Vec<usize>
impl ArrayShape for [usize]
impl ArrayShape for usize
impl ArrayShape for (usize,)
impl ArrayShape for (usize, usize)
impl ArrayShape for (usize, usize, usize)
impl ArrayShape for [usize; 1]
impl ArrayShape for [usize; 2]
impl ArrayShape for [usize; 3]