NLA-lib Explorer

NLAlib.HasOrthonormalCols.cos_principalAngle_left

Library · theorem

Cosines when only the first frame is orthonormal: the singular values of \mathbf{U}^{\mathsf{H}}\mathbf{P}_{\mathbf{Y}}.

NLAlib.HasOrthonormalCols.cos_principalAngle_left.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p] [Fintype q] [DecidableEq p]
  {U : Matrix n p 𝕜} (hU : HasOrthonormalCols U) (Y : Matrix n q 𝕜) (k : ℕ) :
  Real.cos (principalAngle U Y k) = singularValues (Uᴴ * rangeProjector Y) k

Full source on GitHub

Import NLAlib.Matrix.Subspaces.PrincipalAngles.