pub struct HermitianLanczosResult<T> {
pub eigenvalue: f64,
pub eigenvector: T,
pub iterations: usize,
pub residual_norm: f64,
pub converged: bool,
}Expand description
Result of hermitian_lanczos_lowest_eigenpair.
Contains the lowest Ritz eigenpair, the final true residual norm, iteration count, and convergence status.
§Examples
use tensor4all_core::krylov::HermitianLanczosResult;
let result = HermitianLanczosResult {
eigenvalue: 1.0,
eigenvector: vec![1.0_f64],
iterations: 1,
residual_norm: 0.0,
converged: true,
};
assert!(result.converged);
assert_eq!(result.eigenvalue, 1.0);Fields§
§eigenvalue: f64Lowest Ritz eigenvalue.
eigenvector: TCorresponding Ritz eigenvector in the original vector space.
iterations: usizeNumber of Krylov operator applications used to build the final subspace.
residual_norm: f64True residual norm ||A v - lambda v||.
converged: boolWhether the true residual satisfied the requested tolerance.
Trait Implementations§
Source§impl<T: Clone> Clone for HermitianLanczosResult<T>
impl<T: Clone> Clone for HermitianLanczosResult<T>
Source§fn clone(&self) -> HermitianLanczosResult<T>
fn clone(&self) -> HermitianLanczosResult<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<T> Freeze for HermitianLanczosResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for HermitianLanczosResult<T>where
T: RefUnwindSafe,
impl<T> Send for HermitianLanczosResult<T>where
T: Send,
impl<T> Sync for HermitianLanczosResult<T>where
T: Sync,
impl<T> Unpin for HermitianLanczosResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for HermitianLanczosResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HermitianLanczosResult<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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