ExactDimParams

Trait ExactDimParams 

Source
pub trait ExactDimParams: TensorParams {
    type Shape: ?Sized;

    // Required method
    fn shape(&self) -> &Self::Shape;
}

Required Associated Types§

Required Methods§

Source

fn shape(&self) -> &Self::Shape

returns a reference to the shape of the parameter

Implementations on Foreign Types§

Source§

impl ExactDimParams for bool

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for char

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for f32

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for f64

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for i8

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for i16

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for i32

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for i64

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for i128

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for isize

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for str

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for u8

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for u16

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for u32

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for u64

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for u128

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl ExactDimParams for usize

Source§

type Shape = [usize; 0]

Source§

fn shape(&self) -> &Self::Shape

Source§

impl<S, D, A> ExactDimParams for ArrayBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,

Source§

type Shape = [usize]

Source§

fn shape(&self) -> &[usize]

Source§

impl<const N: usize, T> ExactDimParams for [T; N]

Source§

type Shape = [usize; 1]

Source§

fn shape(&self) -> &Self::Shape

Implementors§

Source§

impl<S, D, A> ExactDimParams for ParamsBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,