NLA-lib Explorer

NLAlib.IsSVD.polarFactor_eq

Library ยท theorem

The polar factor through an SVD: for an SVD \mathbf{A} = \mathbf{U}\mathbf{\Sigma}\mathbf{V}^{\mathsf{H}} (IsSVD), the polar factor is \mathbf{U}\mathbf{E}\mathbf{V}^{\mathsf{H}} with \mathbf{E} the diagonal matrix with entry 1 where the singular value is nonzero and 0 where it is zero.

NLAlib.IsSVD.polarFactor_eq.{u_1, u_3, u_4, u_5} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3}
  {n : Type u_4} {r : Type u_5} [Fintype m] [Fintype n] [Fintype r] [DecidableEq n] [DecidableEq r]
  {A : Matrix m n ๐•œ} {U : Matrix m r ๐•œ} {ฯƒ : r โ†’ โ„} {V : Matrix n r ๐•œ} (h : IsSVD A U ฯƒ V) :
  polarFactor A = (U * diagonal fun i โ†ฆ if ฯƒ i = 0 then 0 else 1) * Vแดด

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Polar.