Trait 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;
}
Expand description

Type with a given matrix shape.

Required Associated Types§

Source

type Rows: Copy + Eq

Type of rows.

Source

type Cols: Copy + Eq

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>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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>

Source§

type Rows = Rows

Source§

type Cols = Cols

Source§

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

Source§

type Rows = Rows

Source§

type Cols = Cols