pub enum LinalgError {
Show 13 variants
CoreError(CoreError),
ComputationError(String),
DomainError(String),
ConvergenceError(String),
DimensionError(String),
ShapeError(String),
IndexError(String),
SingularMatrixError(String),
NonPositiveDefiniteError(String),
NotImplementedError(String),
ImplementationError(String),
ValueError(String),
InvalidInputError(String),
}
Expand description
Linear algebra error type
Variants§
CoreError(CoreError)
Core error
ComputationError(String)
Computation error (generic error)
DomainError(String)
Domain error (input outside valid domain)
ConvergenceError(String)
Convergence error (algorithm did not converge)
DimensionError(String)
Dimension mismatch error
ShapeError(String)
Shape error (matrices/arrays have incompatible shapes)
IndexError(String)
Out of bounds error
SingularMatrixError(String)
Singular matrix error
NonPositiveDefiniteError(String)
Non-positive definite matrix error
NotImplementedError(String)
Not implemented error
ImplementationError(String)
Implementation error (method exists but not fully implemented yet)
ValueError(String)
Value error (invalid value)
InvalidInputError(String)
Invalid input error
Trait Implementations§
Source§impl Debug for LinalgError
impl Debug for LinalgError
Source§impl Display for LinalgError
impl Display for LinalgError
Source§impl Error for LinalgError
impl Error for LinalgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LinalgError
impl !RefUnwindSafe for LinalgError
impl Send for LinalgError
impl Sync for LinalgError
impl Unpin for LinalgError
impl !UnwindSafe for LinalgError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more