struct Engine<T: Real> {
m: usize,
n: usize,
ncv: usize,
p: Vec<T>,
u: Vec<T>,
b: DenseBlock<T>,
beta_last: T,
nl: usize,
sigma_est: T,
rng: Rng,
stats: SvdStats,
}Expand description
The state of Algorithm B.
Fields§
§m: usize§n: usize§ncv: usize§p: Vec<T>P, n × (ncv + 1).
u: Vec<T>U, m × ncv.
b: DenseBlock<T>B, ncv × ncv.
beta_last: Tβ_ncv.
nl: usizeLocked count n_L.
sigma_est: Tσ̃_est.
rng: Rng§stats: SvdStatsImplementations§
Source§impl<T: Real> Engine<T>
impl<T: Real> Engine<T>
Sourcefn expand_from<O: AdjointOperator<T> + ?Sized>(
&mut self,
op: &mut O,
from: usize,
eta: T,
) -> Result<(), StatlaError>
fn expand_from<O: AdjointOperator<T> + ?Sized>( &mut self, op: &mut O, from: usize, eta: T, ) -> Result<(), StatlaError>
Steps B2–B3 for j = from, …, ncv − 1 (0-based).
Sourcefn active_block(&self) -> DenseBlock<T>
fn active_block(&self) -> DenseBlock<T>
The active block B[nl.., nl..].
Sourcefn ritz(&self, coef: &DenseBlock<T>, c: usize, left: bool) -> Vec<T>
fn ritz(&self, coef: &DenseBlock<T>, c: usize, left: bool) -> Vec<T>
The active Ritz vector U_act X e_c (left) or P_act Y e_c.
Sourcefn arrowhead_shape(&self, kp: usize) -> bool
fn arrowhead_shape(&self, kp: usize) -> bool
(G3), debug builds, right after a restart to k′ = kp: the locked and
kept rows are zero off the diagonal except the spike column kp
(and the locked rows are zero there too), nothing beyond kp.
Sourcefn orthogonality(&self, j: usize) -> f64
fn orthogonality(&self, j: usize) -> f64
(G1), debug builds: orthonormality of P_{j+1} and U_j.
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