NLA-lib Explorer

Krylov spaces

For a starting vector \mathbf{b}, a Krylov space collects the vectors obtainable by applying low-degree polynomials in \mathbf{A}. It is a mathematical object shared by many algorithms, not an arithmetic implementation.

Definition (Krylov space and grade). For \mathbf{A}\in\mathbb{R}^{n\times n} and \mathbf{b}\in\mathbb{R}^n, define \mathcal{K}_k(\mathbf{A},\mathbf{b})=\operatorname{span}\{\mathbf{b},\mathbf{A}\mathbf{b},\ldots,\mathbf{A}^{k-1}\mathbf{b}\}. The grade is the first index at which this sequence of subspaces stops growing. Orthogonal compression onto such a space underlies several different algorithms; their output and optimality conditions belong on the method pages.

Copy link

Background

Results

Theorem (Dimension of the Krylov space).

\dim\mathcal{K}_q(\mathbf{A}, \mathbf{b}) = \min(q, \nu), \nu the grade of \mathbf{b} for \mathbf{A}. [Saad2003, Proposition 6.2]; it is (6.4) there.

Lean statement and details
NLAlib.finrank_krylovSpace.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] (A : Matrix n n 𝕜) (b : n → 𝕜) (q : ℕ) :
  Module.finrank 𝕜 ↥(krylovSpace A b q) = min q (krylovGrade A b)

Full source on GitHub

Copy link

Theorem (The polynomial description of the Krylov space).

\mathbf{x} \in \mathcal{K}_q exactly when \mathbf{x} = p(\mathbf{A})\mathbf{b} for a polynomial p \in \Bbbk[X] of degree less than q. [Saad2003, §6.2].

Lean statement and details
NLAlib.mem_krylovSpace_iff.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] {A : Matrix n n 𝕜} {b x : n → 𝕜} {q : ℕ} :
  x ∈ krylovSpace A b q ↔ ∃ p, p.degree < ↑q ∧ (Polynomial.aeval A) p *ᵥ b = x

Full source on GitHub

Copy link

Formal definitions

Used by algorithms

16 algorithms using this topic or its subtopics

Conjugate gradient (CG)

Solve a symmetric positive-definite system \mathbf{A}\mathbf{x}=\mathbf{b} using a short Krylov recurrence.

Lanczos process

Build a Krylov basis and a tridiagonal compression of a symmetric operator.

Preconditioned CG (PCG)

Apply conjugate gradients to a symmetrically preconditioned positive-definite system.

Block CG

Solve several positive-definite systems together using block Krylov spaces.

MINRES

Minimize the residual over a Krylov space for a symmetric system.

GMRES

Minimize the residual over a Krylov space for a general square system.

Arnoldi process

Build an orthonormal Krylov basis and an upper-Hessenberg compression.

CGLS

Apply a conjugate-gradient recurrence to a least-squares problem.

Golub–Kahan process

Build a pair of Krylov bases and a block bidiagonal factorization of a rectangular operator.

LSQR

Use bidiagonalization to solve least-squares problems iteratively.

Randomized block Krylov iteration (RBKI)

Project the matrix onto a block Krylov space generated from its sketch.

Late-truncated RBKI

Complete randomized block Krylov iteration, then truncate the output to the target rank.

Nyström block Krylov iteration (NysBKI)

Use a block Krylov test matrix in a Nyström approximation of a positive-semidefinite matrix.

Late-truncated NysBKI

Complete Nyström block Krylov iteration, then truncate the output to the target rank.

Full orthogonalization method (FOM)

Enforce Galerkin orthogonality using a full Krylov basis.

Preconditioned MINRES

Minimize a preconditioned residual norm for a Hermitian system.

Broader topics