pub struct EigenDecomposition;Expand description
Eigenvalue and eigenvector computation utilities
Implementations§
Source§impl EigenDecomposition
impl EigenDecomposition
Sourcepub fn power_iteration(
matrix: &Array2<f64>,
max_iterations: usize,
tolerance: f64,
) -> Result<(f64, Array1<f64>), UtilsError>
pub fn power_iteration( matrix: &Array2<f64>, max_iterations: usize, tolerance: f64, ) -> Result<(f64, Array1<f64>), UtilsError>
Compute dominant eigenvalue and eigenvector using power iteration
Sourcepub fn qr_iteration(
matrix: &Array2<f64>,
max_iterations: usize,
tolerance: f64,
) -> Result<Array1<f64>, UtilsError>
pub fn qr_iteration( matrix: &Array2<f64>, max_iterations: usize, tolerance: f64, ) -> Result<Array1<f64>, UtilsError>
Compute eigenvalues using QR iteration (simplified version)
Auto Trait Implementations§
impl Freeze for EigenDecomposition
impl RefUnwindSafe for EigenDecomposition
impl Send for EigenDecomposition
impl Sync for EigenDecomposition
impl Unpin for EigenDecomposition
impl UnwindSafe for EigenDecomposition
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