Trait ndarray_linalg::square::SquareMatrix
[−]
[src]
pub trait SquareMatrix: Matrix { fn inv(self) -> Result<Self, LinalgError>; fn trace(&self) -> Result<Self::Scalar, LinalgError>; fn square_size(&self) -> Result<usize, 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
fn inv(self) -> Result<Self, LinalgError>
inverse matrix
fn trace(&self) -> Result<Self::Scalar, LinalgError>
trace of matrix
Provided Methods
fn square_size(&self) -> Result<usize, NotSquareError>
test matrix is square and return its size