pub enum MatrixError {
WrongDimension {
expected: (usize, usize),
got: (usize, usize),
},
InconsistetRow,
NotSquare(usize, usize),
EmptyMatrix,
ZeroDeterminant,
}
Variants§
WrongDimension
InconsistetRow
NotSquare(usize, usize)
(cols, rows)
EmptyMatrix
an unempty matrix is expected, but got an empty matrix
ZeroDeterminant
a non-zero determinant is expected, but got 0
Trait Implementations§
Source§impl Debug for MatrixError
impl Debug for MatrixError
Source§impl PartialEq for MatrixError
impl PartialEq for MatrixError
impl StructuralPartialEq for MatrixError
Auto Trait Implementations§
impl Freeze for MatrixError
impl RefUnwindSafe for MatrixError
impl Send for MatrixError
impl Sync for MatrixError
impl Unpin for MatrixError
impl UnwindSafe for MatrixError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more