Trait faer::linalg::zip::MatShape

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

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

Type with a given matrix shape.

Required Associated Types§

source

type Rows: Copy + Eq + Debug

Type of rows.

source

type Cols: Copy + Eq + Debug

Type of columns.

Required Methods§

source

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

Returns the number of rows.

source

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

Returns the number of columns.

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 + Debug, Cols: Copy + Eq + Debug, 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 + Debug, Cols: Copy + Eq + Debug, Mat: MatShape<Rows = Rows, Cols = Cols>> MatShape for LastEq<Rows, Cols, Mat>

§

type Rows = Rows

§

type Cols = Cols