pub struct MatrixNorms;Expand description
Matrix norm computation utilities
Implementations§
Source§impl MatrixNorms
impl MatrixNorms
Sourcepub fn frobenius_norm(matrix: &Array2<f64>) -> f64
pub fn frobenius_norm(matrix: &Array2<f64>) -> f64
Compute Frobenius norm
Sourcepub fn spectral_norm(matrix: &Array2<f64>) -> Result<f64, UtilsError>
pub fn spectral_norm(matrix: &Array2<f64>) -> Result<f64, UtilsError>
Compute spectral norm (largest singular value)
Sourcepub fn nuclear_norm(matrix: &Array2<f64>) -> Result<f64, UtilsError>
pub fn nuclear_norm(matrix: &Array2<f64>) -> Result<f64, UtilsError>
Compute nuclear norm (sum of singular values)
Sourcepub fn infinity_norm(matrix: &Array2<f64>) -> f64
pub fn infinity_norm(matrix: &Array2<f64>) -> f64
Compute infinity norm (maximum absolute row sum)
Auto Trait Implementations§
impl Freeze for MatrixNorms
impl RefUnwindSafe for MatrixNorms
impl Send for MatrixNorms
impl Sync for MatrixNorms
impl Unpin for MatrixNorms
impl UnwindSafe for MatrixNorms
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> 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