pub trait MatrixBase: Sized {
    type Dim: DimTrait;
    type Item: Num;

    // Required method
    fn shape_stride(&self) -> ShapeStride<Self::Dim>;

    // Provided methods
    fn shape(&self) -> Self::Dim { ... }
    fn stride(&self) -> Self::Dim { ... }
    fn is_default_stride(&self) -> bool { ... }
    fn is_transposed_default_stride(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

source

fn shape_stride(&self) -> ShapeStride<Self::Dim>

Provided Methods§

source

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

source

fn stride(&self) -> Self::Dim

source

fn is_default_stride(&self) -> bool

source

fn is_transposed_default_stride(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Num, M: Memory<Item = T>, S: DimTrait> MatrixBase for Matrix<M, S>

§

type Dim = S

§

type Item = T