NLA-lib Explorer

NLAlib.HasOrthonormalCols.isQR_submatrix_castLE

Library ยท theorem

The thin factorization from the full one: for n \le m, the first n columns of \mathbf{Q} and the first n rows of \mathbf{R}.

NLAlib.HasOrthonormalCols.isQR_submatrix_castLE.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ] {m n : โ„•}
  {A : Matrix (Fin m) (Fin n) ๐•œ} {Q : Matrix (Fin m) (Fin m) ๐•œ} {R : Matrix (Fin m) (Fin n) ๐•œ}
  (hQ : HasOrthonormalCols Q) (hR : IsUpperTrapezoidal R) (hA : A = Q * R) (h : n โ‰ค m) :
  IsQR A (Q.submatrix id (Fin.castLE h)) (R.submatrix (Fin.castLE h) id)

Full source on GitHub

Import NLAlib.Matrix.Factorizations.QR.