Trait faer_core::zip::MatShape

source ·
pub trait MatShape {
    type Rows: Copy + Eq;
    type Cols: Copy + Eq;

    // Required methods
    fn nrows(&self) -> Self::Rows;
    fn ncols(&self) -> Self::Cols;
}

Required Associated Types§

Required Methods§

source

fn nrows(&self) -> Self::Rows

source

fn ncols(&self) -> Self::Cols

Implementors§

source§

impl<E: Entity> MatShape for ColMut<'_, E>

§

type Rows = usize

§

type Cols = ()

source§

impl<E: Entity> MatShape for ColRef<'_, E>

§

type Rows = usize

§

type Cols = ()

source§

impl<E: Entity> MatShape for MatMut<'_, E>

§

type Rows = usize

§

type Cols = usize

source§

impl<E: Entity> MatShape for MatRef<'_, E>

§

type Rows = usize

§

type Cols = usize

source§

impl<E: Entity> MatShape for RowMut<'_, E>

§

type Rows = ()

§

type Cols = usize

source§

impl<E: Entity> MatShape for RowRef<'_, E>

§

type Rows = ()

§

type Cols = usize

source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Head: MatShape<Rows = Rows, Cols = Cols>, Tail: MatShape<Rows = Rows, Cols = Cols>> MatShape for ZipEq<Rows, Cols, Head, Tail>

§

type Rows = Rows

§

type Cols = Cols

source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatShape<Rows = Rows, Cols = Cols>> MatShape for LastEq<Rows, Cols, Mat>

§

type Rows = Rows

§

type Cols = Cols