Theorem (isQR_givensHessenberg). Givens QR gives the thin QR factorization of a tall upper Hessenberg matrix. [GolubVanLoan2013, Algorithm 5.2.4].
Headline
Lean statement and details
NLAlib.isQR_givensHessenberg.{u_1} {𝕜 : Type u_1} [RCLike 𝕜] {m p : ℕ}
{H : Matrix (Fin m) (Fin p) 𝕜} (hH : IsUpperHessenberg H) (h : p ≤ m) :
IsQR H ((givensHessenbergQ H).submatrix id (Fin.castLE h))
((givensHessenbergR H).submatrix (Fin.castLE h) id)