pub struct NumericalStabilityAnalyzer {
pub tolerance: Float,
pub max_condition_number: Float,
pub warnings: Vec<StabilityWarning>,
}Expand description
Numerical stability analyzer
Fields§
§tolerance: FloatTolerance for detecting issues
max_condition_number: FloatMaximum safe condition number
warnings: Vec<StabilityWarning>Warnings encountered
Implementations§
Source§impl NumericalStabilityAnalyzer
impl NumericalStabilityAnalyzer
Sourcepub fn analyze_matrix(
&mut self,
matrix: &Array2<Float>,
) -> Result<StabilityReport>
pub fn analyze_matrix( &mut self, matrix: &Array2<Float>, ) -> Result<StabilityReport>
Check matrix for numerical stability issues
Sourcepub fn check_convergence(
&mut self,
residuals: &[Float],
) -> Result<Vec<StabilityWarning>>
pub fn check_convergence( &mut self, residuals: &[Float], ) -> Result<Vec<StabilityWarning>>
Check convergence for numerical issues
Sourcepub fn get_warnings(&self) -> &[StabilityWarning]
pub fn get_warnings(&self) -> &[StabilityWarning]
Get all warnings
Sourcepub fn clear_warnings(&mut self)
pub fn clear_warnings(&mut self)
Clear warnings
Trait Implementations§
Source§impl Clone for NumericalStabilityAnalyzer
impl Clone for NumericalStabilityAnalyzer
Source§impl Debug for NumericalStabilityAnalyzer
impl Debug for NumericalStabilityAnalyzer
Auto Trait Implementations§
impl Freeze for NumericalStabilityAnalyzer
impl RefUnwindSafe for NumericalStabilityAnalyzer
impl Send for NumericalStabilityAnalyzer
impl Sync for NumericalStabilityAnalyzer
impl Unpin for NumericalStabilityAnalyzer
impl UnsafeUnpin for NumericalStabilityAnalyzer
impl UnwindSafe for NumericalStabilityAnalyzer
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,
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