NLA-lib Explorer

NLAlib.mgsSweep_gramSchmidtQ_col

Library · theorem

Sweeping column j against the preceding Gram–Schmidt columns gives r_{jj}\mathbf{q}_j, including a zero residual at breakdown.

NLAlib.mgsSweep_gramSchmidtQ_col.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_4} [Fintype m]
  {k : ℕ} (M : Matrix m (Fin k) 𝕜) (u : Fin k) :
  mgsSweep (fun c a ↦ if h : c < k then gramSchmidtQ M a ⟨c, h⟩ else 0) (M.col u) ↑u =
    gramSchmidtR M u u • (gramSchmidtQ M).col u

Full source on GitHub

Import NLAlib.Matrix.Factorizations.GramSchmidt.