pub enum LinalgError {
Show 14 variants
ComputationError(String),
DomainError(String),
ConvergenceError(String),
DimensionError(String),
ShapeError(String),
IndexError(String),
SingularMatrixError(String),
NonPositiveDefiniteError(String),
NotImplementedError(String),
ImplementationError(String),
ValueError(String),
InvalidInputError(String),
InvalidInput(String),
NumericalError(String),
}Expand description
Linear algebra error type
Variants§
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
InvalidInput(String)
Invalid input error (SciPy-compatible alias)
NumericalError(String)
Numerical error (e.g., overflow, underflow, division by zero)
Implementations§
Source§impl LinalgError
Enhanced error types with regularization suggestions
impl LinalgError
Enhanced error types with regularization suggestions
Sourcepub fn singularmatrix_with_suggestions(
operation: &str,
matrixshape: (usize, usize),
condition_number: Option<f64>,
) -> Self
pub fn singularmatrix_with_suggestions( operation: &str, matrixshape: (usize, usize), condition_number: Option<f64>, ) -> Self
Create a singular matrix error with regularization suggestions
Trait Implementations§
Source§impl Clone for LinalgError
impl Clone for LinalgError
Source§fn clone(&self) -> LinalgError
fn clone(&self) -> LinalgError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
1.30.0§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§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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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