Enum hmath::MatrixError
source · 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<MatrixError> for MatrixError
impl PartialEq<MatrixError> for MatrixError
source§fn eq(&self, other: &MatrixError) -> bool
fn eq(&self, other: &MatrixError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MatrixError
Auto Trait Implementations§
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