pub struct NumericalStabilityMonitor { /* private fields */ }Expand description
Numerical stability monitor for kernel approximation methods NumericalStabilityMonitor
Implementations§
Source§impl NumericalStabilityMonitor
impl NumericalStabilityMonitor
Sourcepub fn new(config: StabilityConfig) -> Self
pub fn new(config: StabilityConfig) -> Self
Create a new stability monitor
Sourcepub fn monitor_matrix(
&mut self,
matrix: &Array2<f64>,
location: &str,
) -> Result<()>
pub fn monitor_matrix( &mut self, matrix: &Array2<f64>, location: &str, ) -> Result<()>
Monitor matrix for numerical stability issues
Sourcepub fn stabilize_matrix(&mut self, matrix: &mut Array2<f64>) -> Result<()>
pub fn stabilize_matrix(&mut self, matrix: &mut Array2<f64>) -> Result<()>
Apply numerical stabilization to a matrix
Sourcepub fn stable_eigendecomposition(
&mut self,
matrix: &Array2<f64>,
) -> Result<(Array1<f64>, Array2<f64>)>
pub fn stable_eigendecomposition( &mut self, matrix: &Array2<f64>, ) -> Result<(Array1<f64>, Array2<f64>)>
Compute numerically stable eigendecomposition
Sourcepub fn stable_matrix_inverse(
&mut self,
matrix: &Array2<f64>,
) -> Result<Array2<f64>>
pub fn stable_matrix_inverse( &mut self, matrix: &Array2<f64>, ) -> Result<Array2<f64>>
Compute numerically stable matrix inversion
Sourcepub fn stable_cholesky(&mut self, matrix: &Array2<f64>) -> Result<Array2<f64>>
pub fn stable_cholesky(&mut self, matrix: &Array2<f64>) -> Result<Array2<f64>>
Compute numerically stable Cholesky decomposition
Sourcepub fn get_warnings(&self) -> &[StabilityWarning]
pub fn get_warnings(&self) -> &[StabilityWarning]
Get stability warnings
Sourcepub fn get_metrics(&self) -> &StabilityMetrics
pub fn get_metrics(&self) -> &StabilityMetrics
Get stability metrics
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate stability report
Trait Implementations§
Source§impl Clone for NumericalStabilityMonitor
impl Clone for NumericalStabilityMonitor
Source§fn clone(&self) -> NumericalStabilityMonitor
fn clone(&self) -> NumericalStabilityMonitor
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 moreAuto Trait Implementations§
impl Freeze for NumericalStabilityMonitor
impl RefUnwindSafe for NumericalStabilityMonitor
impl Send for NumericalStabilityMonitor
impl Sync for NumericalStabilityMonitor
impl Unpin for NumericalStabilityMonitor
impl UnwindSafe for NumericalStabilityMonitor
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
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