NLA-lib Explorer

NLAlib.IsSVD.rank_eq

Library ยท theorem

The rank is the number of nonzero entries of \boldsymbol{\sigma}.

NLAlib.IsSVD.rank_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 r] {A : Matrix m n ๐•œ}
  {U : Matrix m r ๐•œ} {ฯƒ : r โ†’ โ„} {V : Matrix n r ๐•œ} (h : IsSVD A U ฯƒ V) :
  A.rank = {i | ฯƒ i โ‰  0}.card

Full source on GitHub

Import NLAlib.Matrix.Spectral.SVD.