NLA-lib Explorer

NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal_nonneg

Library · theorem

The full QR factorization with nonnegative diagonal: the upper trapezoidal factor of NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal can be chosen with nonnegative entries on its main diagonal.

NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal_nonneg.{u_1} {𝕜 : Type u_1} [RCLike 𝕜]
  {m n : ℕ} (A : Matrix (Fin m) (Fin n) 𝕜) :
  ∃ Q R,
    HasOrthonormalCols Q ∧
      IsUpperTrapezoidal R ∧ A = Q * R ∧ ∀ (i : Fin m) (j : Fin n), ↑i = ↑j → 0 ≤ R i j

Full source on GitHub

Import NLAlib.Matrix.Factorizations.QR.