Skip to main content

Engine

Struct Engine 

Source
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: usize

Locked count n_L.

§anorm: T

‖A‖_est.

§rng: Rng§stats: EigsStats

Implementations§

Source§

impl<T: Real> Engine<T>

Source

fn hi(&self, i: usize, j: usize) -> usize

Source

fn expand_from<O: LinearOperator<T> + ?Sized>( &mut self, op: &mut O, from: usize, eta: T, ) -> Result<(), StatlaError>

KS2 for j = from, …, m − 1.

Source

fn active_schur( &self, so: &SchurOptions<T>, ) -> Result<ActiveSchur<T>, StatlaError>

KS3.

Source

fn s_ll(&self) -> DenseBlock<T>

The locked block S_LL.

Source

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).

Source

fn orthogonality(&self, j: usize) -> f64

(K1), debug builds: max |V_jᵀV_j − I| over the first j columns.

Source

fn restart_shape(&self, kp: usize) -> bool

(K3), debug builds, right after a restart to kp.

Source§

impl<T: Real> Engine<T>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.