ella_tensor::slice

Trait SliceShape

Source
pub trait SliceShape<In: Shape>: AsRef<[AxisSliceSpec]> {
    type Out: Shape;

    // Required methods
    fn in_ndim(&self) -> usize;
    fn out_ndim(&self) -> usize;

    // Provided method
    fn slice(&self) -> &[AxisSliceSpec] { ... }
}

Required Associated Types§

Required Methods§

Source

fn in_ndim(&self) -> usize

Source

fn out_ndim(&self) -> usize

Provided Methods§

Source

fn slice(&self) -> &[AxisSliceSpec]

Implementations on Foreign Types§

Source§

impl<T, S> SliceShape<S> for &T
where T: SliceShape<S> + ?Sized, S: Shape,

Source§

type Out = <T as SliceShape<S>>::Out

Source§

fn in_ndim(&self) -> usize

Source§

fn out_ndim(&self) -> usize

Implementors§

Source§

impl<T, In, Out> SliceShape<In> for SliceSpec<T, In, Out>
where T: AsRef<[AxisSliceSpec]>, In: Shape, Out: Shape,

Source§

type Out = Out