pub struct LanczosResult<T: Scalar> {
pub eigenvalue: T::Real,
pub eigenvector: DenseTensor<T>,
pub iters: usize,
pub residual: T::Real,
pub converged: bool,
}Expand description
Output of lanczos_smallest.
Fields§
§eigenvalue: T::RealSmallest eigenvalue.
eigenvector: DenseTensor<T>Corresponding (unit-norm) eigenvector of length dim.
iters: usizeNumber of Lanczos iterations actually run.
residual: T::RealTrue residual || H v - lambda v ||_2 of the returned pair.
converged: booltrue if the returned pair satisfies the true-residual test
|| H v - lambda v ||_2 ≤ tol, false otherwise. The cheap
Lanczos residual estimate beta * |z[m-1]| and the beta == 0
invariant-subspace check are used as early-exit heuristics
inside the iteration loop, but neither sets this flag on its
own — the flag comes from comparing the residual the caller
sees against tol.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LanczosResult<T>
impl<T> RefUnwindSafe for LanczosResult<T>
impl<T> Send for LanczosResult<T>
impl<T> Sync for LanczosResult<T>
impl<T> Unpin for LanczosResult<T>
impl<T> UnsafeUnpin for LanczosResult<T>
impl<T> UnwindSafe for LanczosResult<T>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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