NLA-lib Explorer

Hessenberg reduction

Definition (Hessenberg reduction). For a square \mathbf{A}, accumulate Householder similarities to obtain a unitary \mathbf{Q} and upper-Hessenberg \mathbf{H}=\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}. The mathematical construction uses n-2 similarities; for n\le2 it returns (\mathbf{I},\mathbf{A}). It changes the representation of the eigenproblem, not its eigenvalues.

Lean statement and details
NLAlib.hessenbergReduction.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ] {n : โ„•} (A : Matrix (Fin n) (Fin n) ๐•œ) :
  Matrix (Fin n) (Fin n) ๐•œ ร— Matrix (Fin n) (Fin n) ๐•œ

Full source on GitHub

Copy link

Results

Theorem (Reduction to Hessenberg form).

Every square matrix \mathbf{A} is unitarily similar to an upper Hessenberg matrix \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}, by a unitary \mathbf{Q} whose first column is the first coordinate vector \mathbf{e}_0. [GolubVanLoan2013, ยง7.4.3]; [HornJohnson2013, ยง2.5].

Lean statement and details
NLAlib.exists_isUpperHessenberg_conjTranspose_mul_mul.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ] {n : โ„•}
  (A : Matrix (Fin n) (Fin n) ๐•œ) :
  โˆƒ Q,
    HasOrthonormalCols Q โˆง
      IsUpperHessenberg (Qแดด * A * Q) โˆง โˆ€ (i : Fin n), โ†‘i = 0 โ†’ Q.col i = Pi.single i 1

Full source on GitHub

Copy link

Mathematical background

Appears under these tasks