pub enum RecoveryStrategy {
SwitchAlgorithm(String),
IncreasePrecision,
RelaxTolerance(f64),
RestartWithDifferentSeed,
ConvertMatrixFormat(String),
IncreaseIterations(usize),
}Expand description
Recovery strategies for recoverable errors.
Variants§
SwitchAlgorithm(String)
Switch to a different solver algorithm.
IncreasePrecision
Increase numerical precision (f32 -> f64).
RelaxTolerance(f64)
Relax convergence tolerance by the given factor.
RestartWithDifferentSeed
Restart with different random seed.
ConvertMatrixFormat(String)
Convert matrix to a different storage format.
IncreaseIterations(usize)
Increase maximum iteration count.
Trait Implementations§
Source§impl Clone for RecoveryStrategy
impl Clone for RecoveryStrategy
Source§fn clone(&self) -> RecoveryStrategy
fn clone(&self) -> RecoveryStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoveryStrategy
impl Debug for RecoveryStrategy
Source§impl<'de> Deserialize<'de> for RecoveryStrategy
impl<'de> Deserialize<'de> for RecoveryStrategy
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 PartialEq for RecoveryStrategy
impl PartialEq for RecoveryStrategy
Source§impl Serialize for RecoveryStrategy
impl Serialize for RecoveryStrategy
impl StructuralPartialEq for RecoveryStrategy
Auto Trait Implementations§
impl Freeze for RecoveryStrategy
impl RefUnwindSafe for RecoveryStrategy
impl Send for RecoveryStrategy
impl Sync for RecoveryStrategy
impl Unpin for RecoveryStrategy
impl UnwindSafe for RecoveryStrategy
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