Trait diffsol::matrix::MatrixCommon

source ·
pub trait MatrixCommon: Sized + Debug {
    type V: Vector<T = Self::T>;
    type T: Scalar;

    // Required methods
    fn nrows(&self) -> IndexType;
    fn ncols(&self) -> IndexType;
}

Required Associated Types§

source

type V: Vector<T = Self::T>

source

type T: Scalar

Required Methods§

source

fn nrows(&self) -> IndexType

source

fn ncols(&self) -> IndexType

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, M> MatrixCommon for &'a M
where M: MatrixCommon,

§

type T = <M as MatrixCommon>::T

§

type V = <M as MatrixCommon>::V

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, M> MatrixCommon for &'a mut M
where M: MatrixCommon,

§

type T = <M as MatrixCommon>::T

§

type V = <M as MatrixCommon>::V

source§

fn ncols(&self) -> IndexType

source§

fn nrows(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for MatMut<'a, T>

§

type T = T

§

type V = Col<T>

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for Mat<T>

§

type T = T

§

type V = Col<T>

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for MatRef<'a, T>

§

type T = T

§

type V = Col<T>

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for DMatrix<T>

§

type V = Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>

§

type T = T

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for DMatrixView<'a, T>

§

type V = Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>

§

type T = T

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<'a, T: Scalar> MatrixCommon for DMatrixViewMut<'a, T>

§

type V = Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>

§

type T = T

source§

fn nrows(&self) -> IndexType

source§

fn ncols(&self) -> IndexType

source§

impl<T: Scalar> MatrixCommon for CscMatrix<T>

§

type V = Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>

§

type T = T

source§

fn ncols(&self) -> IndexType

source§

fn nrows(&self) -> IndexType

Implementors§