pub struct TropicalEigen {
pub eigenvalue: f64,
pub eigenvector: Vec<f64>,
}Expand description
Tropical eigenvalue and eigenvector
Fields§
§eigenvalue: f64Eigenvalue (cycle mean)
eigenvector: Vec<f64>Eigenvector
Implementations§
Source§impl TropicalEigen
impl TropicalEigen
Sourcepub fn power_iteration(
matrix: &TropicalMatrix,
max_iters: usize,
) -> Option<Self>
pub fn power_iteration( matrix: &TropicalMatrix, max_iters: usize, ) -> Option<Self>
Compute tropical eigenpair using power iteration Finds λ and v such that A ⊗ v = λ ⊗ v (i.e., max_j(A[i,j] + v[j]) = λ + v[i])
Trait Implementations§
Source§impl Clone for TropicalEigen
impl Clone for TropicalEigen
Source§fn clone(&self) -> TropicalEigen
fn clone(&self) -> TropicalEigen
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 TropicalEigen
impl RefUnwindSafe for TropicalEigen
impl Send for TropicalEigen
impl Sync for TropicalEigen
impl Unpin for TropicalEigen
impl UnwindSafe for TropicalEigen
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