pub enum DecompositionError {
ConvergenceFailure {
algorithm: String,
max_iterations: usize,
final_residual: Float,
convergence_history: Vec<Float>,
recommended_action: String,
},
NumericalInstability {
issue: NumericalIssue,
severity: Severity,
affected_components: Vec<usize>,
recommendation: String,
},
InvalidInput {
reason: String,
validation_failures: Vec<ValidationFailure>,
suggestions: Vec<String>,
},
DimensionMismatch {
expected: (usize, usize),
actual: (usize, usize),
operation: String,
},
RankDeficiency {
expected_rank: usize,
actual_rank: usize,
tolerance: Float,
recovery_strategy: RecoveryStrategy,
},
IllConditioned {
condition_number: Float,
threshold: Float,
suggested_regularization: Float,
},
MemoryAllocation {
requested_bytes: usize,
available_bytes: Option<usize>,
suggestion: String,
},
AlgorithmMismatch {
algorithm: String,
reason: String,
alternatives: Vec<String>,
},
InvalidParameter {
parameter: String,
value: String,
constraint: String,
valid_range: String,
},
}Expand description
Comprehensive decomposition error types
Variants§
ConvergenceFailure
Convergence failure with diagnostic information
Fields
NumericalInstability
Numerical instability detected
Fields
§
issue: NumericalIssueInvalidInput
Invalid input data
DimensionMismatch
Dimension mismatch
RankDeficiency
Rank deficiency
IllConditioned
Ill-conditioned matrix
MemoryAllocation
Memory allocation failure
AlgorithmMismatch
Algorithm not suitable for data
InvalidParameter
Parameter validation failure
Trait Implementations§
Source§impl Clone for DecompositionError
impl Clone for DecompositionError
Source§impl Debug for DecompositionError
impl Debug for DecompositionError
Source§impl<'de> Deserialize<'de> for DecompositionError
impl<'de> Deserialize<'de> for DecompositionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DecompositionError
impl Display for DecompositionError
Auto Trait Implementations§
impl Freeze for DecompositionError
impl RefUnwindSafe for DecompositionError
impl Send for DecompositionError
impl Sync for DecompositionError
impl Unpin for DecompositionError
impl UnsafeUnpin for DecompositionError
impl UnwindSafe for DecompositionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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