Trait ndarray_linalg::square::SquareMatrix [] [src]

pub trait SquareMatrix: Matrix {
    fn inv(self) -> Result<Self, LinalgError>;
    fn trace(&self) -> Result<Self::Scalar, LinalgError>;

    fn check_square(&self) -> Result<(), NotSquareError> { ... }
}

Methods for square matrices

This trait defines method for square matrices, but does not assure that the matrix is square. If not square, NotSquareError will be thrown.

Required Methods

inverse matrix

trace of matrix

Provided Methods

test matrix is square

Implementors