NLA-lib Explorer

NLAlib.conjTranspose_gramSchmidtQ_mul_self

Library · theorem

The Gram matrix \mathbf{Q}^{\mathsf{H}}\mathbf{Q} of the Gram–Schmidt vectors is diagonal, with entry 0 where \mathbf{R}_{j,j} = 0 and 1 elsewhere.

NLAlib.conjTranspose_gramSchmidtQ_mul_self.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] [LinearOrder n] [LocallyFiniteOrderBot n] [DecidableEq n]
  (A : Matrix m n 𝕜) :
  (gramSchmidtQ A)ᴴ * gramSchmidtQ A = diagonal fun j ↦ if gramSchmidtR A j j = 0 then 0 else 1

Full source on GitHub

Import NLAlib.Matrix.Factorizations.GramSchmidt.