NLA-lib Explorer

NLAlib.dotProduct_mgsSweep_gramSchmidtQ_col

Library · theorem

Headline of gram-schmidt

Triangular coefficients of modified Gram–Schmidt. The product of \mathbf{q}_i with the residual of column j after the first i projections gives r_{ij} of classical Gram–Schmidt. This holds at every step of \mathsf{mgsSweep}, also for dependent columns. [GolubVanLoan2013, §5.2.8]. Result: gram-schmidt

NLAlib.dotProduct_mgsSweep_gramSchmidtQ_col.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_4}
  [Fintype m] {k : ℕ} (A : Matrix m (Fin k) 𝕜) (i j : Fin k) :
  star ((gramSchmidtQ A).col i) ⬝ᵥ
      mgsSweep (fun l a ↦ if h : l < k then gramSchmidtQ A a ⟨l, h⟩ else 0) (A.col j) ↑i =
    gramSchmidtR A i j

Full source on GitHub

Import NLAlib.Matrix.Factorizations.GramSchmidt.