Skip to main content

Module power_iteration

Module power_iteration 

Source
Expand description

Power iteration and its two refinements, for one eigenpair of a symmetric matrix.

Multiplying a vector repeatedly by A amplifies its component along the eigenvector of the largest-magnitude eigenvalue, at the rate |λ₂ / λ₁| per step. Inverse iteration applies the same idea to (A − σI)⁻¹, whose dominant eigenvalue 1 / (λ − σ) belongs to the eigenvalue nearest the shift σ; the closer the shift, the faster the convergence. Rayleigh quotient iteration updates the shift to the current estimate σ = vᵀAv at every step, which converges cubically for symmetric matrices, at the price of a new factorisation per step.

See the book entry Eigenvalue algorithms.

Structs§

EigenEstimate
An eigenvalue estimate, its unit eigenvector and the iterations taken.

Functions§

inverse_iteration
Inverse iteration with a fixed shift: v ← (A − σI)⁻¹ v, factorising once.
power_iteration
Power iteration: v ← A v. Converges to the eigenvalue of largest magnitude.
rayleigh_quotient_iteration
Rayleigh quotient iteration: v ← (A − σ_k I)⁻¹ v with σ_k = vᵀAv, refactorising each step.