struct Engine<T: Real> {
n: usize,
m: usize,
sym: bool,
v: Vec<T>,
h: DenseBlock<T>,
nl: usize,
anorm: T,
rng: Rng,
stats: EigsStats,
}Expand description
The state of Algorithm KS.
Fields§
§n: usize§m: usize§sym: bool§v: Vec<T>V, n × (m + 1).
h: DenseBlock<T>H̄, (m + 1) × m.
nl: usizeLocked count n_L.
anorm: T‖A‖_est.
rng: Rng§stats: EigsStatsImplementations§
Source§impl<T: Real> Engine<T>
impl<T: Real> Engine<T>
fn hi(&self, i: usize, j: usize) -> usize
Sourcefn expand_from<O: LinearOperator<T> + ?Sized>(
&mut self,
op: &mut O,
from: usize,
eta: T,
) -> Result<(), StatlaError>
fn expand_from<O: LinearOperator<T> + ?Sized>( &mut self, op: &mut O, from: usize, eta: T, ) -> Result<(), StatlaError>
KS2 for j = from, …, m − 1.
Sourcefn active_schur(
&self,
so: &SchurOptions<T>,
) -> Result<ActiveSchur<T>, StatlaError>
fn active_schur( &self, so: &SchurOptions<T>, ) -> Result<ActiveSchur<T>, StatlaError>
KS3.
Sourcefn s_ll(&self) -> DenseBlock<T>
fn s_ll(&self) -> DenseBlock<T>
The locked block S_LL.
Sourcefn full_t(&self, a: &ActiveSchur<T>) -> DenseBlock<T>
fn full_t(&self, a: &ActiveSchur<T>) -> DenseBlock<T>
The whole quasi-triangular T = [S_LL, H_LA Z_A; 0, T_A] (m × m).
Sourcefn orthogonality(&self, j: usize) -> f64
fn orthogonality(&self, j: usize) -> f64
(K1), debug builds: max |V_jᵀV_j − I| over the first j columns.
Sourcefn restart_shape(&self, kp: usize) -> bool
fn restart_shape(&self, kp: usize) -> bool
(K3), debug builds, right after a restart to kp.
Source§impl<T: Real> Engine<T>
impl<T: Real> Engine<T>
Sourcefn vectors(
&self,
act: &ActiveSchur<T>,
cands: &[Blk<T>],
take: &[(usize, bool)],
) -> (DenseBlock<T>, DenseBlock<T>)
fn vectors( &self, act: &ActiveSchur<T>, cands: &[Blk<T>], take: &[(usize, bool)], ) -> (DenseBlock<T>, DenseBlock<T>)
KS8: the eigenvectors of the values take (candidate, conjugate?).
Auto Trait Implementations§
impl<T> Freeze for Engine<T>where
T: Freeze,
impl<T> RefUnwindSafe for Engine<T>where
T: RefUnwindSafe,
impl<T> Send for Engine<T>where
T: Send,
impl<T> Sync for Engine<T>where
T: Sync,
impl<T> Unpin for Engine<T>where
T: Unpin,
impl<T> UnsafeUnpin for Engine<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Engine<T>where
T: UnwindSafe,
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