NLA-lib Explorer

NLAlib.MGS.mgsSweep_gramSchmidtQ

Library · theorem

The sweep of column j against the earlier Gram–Schmidt columns.

NLAlib.MGS.mgsSweep_gramSchmidtQ {𝕜 : Type} [RCLike 𝕜] {N k : ℕ} (M : Matrix (Fin N) (Fin k) 𝕜)
  (j : ℕ) (hj : j < k) :
  mgsSweep (fun c a ↦ if h : c < k then gramSchmidtQ M a ⟨c, h⟩ else 0) (M.col ⟨j, hj⟩) j =
    gramSchmidtR M ⟨j, hj⟩ ⟨j, hj⟩ • (gramSchmidtQ M).col ⟨j, hj⟩

Full source on GitHub

Import NLAlib.Matrix.Factorizations.MGS.Math.