pub enum SolverError {
Show 15 variants
InvalidInput(String),
NonFiniteInput {
index: usize,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
SingularMatrix(String),
NearSingularMatrix(String),
FactorizationFailed(String),
SolveFailed(String),
BackendUnavailable(String),
BackendError(String),
Unsupported(String),
ConvergenceFailed(String),
NotImplemented(String),
NotSymmetric,
NotFactorized,
NotConverged,
}Expand description
Unified error type for all linear solvers
Variants§
InvalidInput(String)
NonFiniteInput
DimensionMismatch
SingularMatrix(String)
NearSingularMatrix(String)
FactorizationFailed(String)
SolveFailed(String)
BackendError(String)
Unsupported(String)
ConvergenceFailed(String)
NotImplemented(String)
NotSymmetric
NotFactorized
NotConverged
Implementations§
Source§impl SolverError
impl SolverError
pub fn invalid_input(msg: impl Into<String>) -> Self
pub fn non_finite(index: usize) -> Self
pub fn dimension_mismatch(expected: usize, actual: usize) -> Self
pub fn singular(msg: impl Into<String>) -> Self
pub fn near_singular(msg: impl Into<String>) -> Self
pub fn factorization_failed(msg: impl Into<String>) -> Self
pub fn solve_failed(msg: impl Into<String>) -> Self
pub fn backend_error(msg: impl Into<String>) -> Self
pub fn unsupported(msg: impl Into<String>) -> Self
pub fn convergence_failed(msg: impl Into<String>) -> Self
pub fn not_implemented(msg: impl Into<String>) -> Self
pub fn not_symmetric() -> Self
pub fn not_factorized() -> Self
pub fn not_converged() -> Self
Trait Implementations§
Source§impl Clone for SolverError
impl Clone for SolverError
Source§impl Debug for SolverError
impl Debug for SolverError
Source§impl Display for SolverError
impl Display for SolverError
Source§impl Error for SolverError
impl Error for SolverError
1.30.0 · 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 Forget for SolverError
impl Freeze for SolverError
impl Move for SolverError
impl RefUnwindSafe for SolverError
impl Send for SolverError
impl Sync for SolverError
impl Unpin for SolverError
impl UnsafeUnpin for SolverError
impl UnwindSafe for SolverError
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