pub struct MatrixUtils;Expand description
Additional matrix utilities
Implementations§
Source§impl MatrixUtils
impl MatrixUtils
Sourcepub fn is_positive_definite(matrix: &Array2<f64>) -> Result<bool, UtilsError>
pub fn is_positive_definite(matrix: &Array2<f64>) -> Result<bool, UtilsError>
Check if matrix is positive definite
Sourcepub fn is_orthogonal(matrix: &Array2<f64>, tolerance: f64) -> bool
pub fn is_orthogonal(matrix: &Array2<f64>, tolerance: f64) -> bool
Check if matrix is orthogonal
Sourcepub fn determinant(matrix: &Array2<f64>) -> Result<f64, UtilsError>
pub fn determinant(matrix: &Array2<f64>) -> Result<f64, UtilsError>
Compute matrix determinant using LU decomposition
Auto Trait Implementations§
impl Freeze for MatrixUtils
impl RefUnwindSafe for MatrixUtils
impl Send for MatrixUtils
impl Sync for MatrixUtils
impl Unpin for MatrixUtils
impl UnwindSafe for MatrixUtils
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