NLA-lib Explorer

NLAlib.svdU

Library ยท def

The left singular vectors of the chosen SVD: \mathsf{svdU}(\mathbf{A}) has r = \min(\lvert m\rvert, \lvert n\rvert) orthonormal columns and, with \mathsf{svdV}(\mathbf{A}), gives \mathbf{A} = \mathsf{svdU}(\mathbf{A})\,\operatorname{diag}\bigl(\sigma_0(\mathbf{A}), \dots, \sigma_{r-1}(\mathbf{A})\bigr)\,\mathsf{svdV}(\mathbf{A})^{\mathsf{H}} (NLAlib.isSVD_svdU_svdV). Among all such thin SVDs it is the one whose real coordinates, in the basis Module.finBasis โ„ _ of the pairs of factors, are lexicographically least (NLAlib.IsSVD.toLex_equivFun_svdU_svdV_le), so it is a fixed function of \mathbf{A}; it is Borel measurable (NLAlib.measurable_svdU). NLAlib.truncatedSVD is built from it.

NLAlib.svdU.{u_1, u_3, u_4} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3} {n : Type u_4} [Fintype m]
  [Fintype n] (A : Matrix m n ๐•œ) : Matrix m (Fin (min (Fintype.card m) (Fintype.card n))) ๐•œ

Full source on GitHub

Import NLAlib.Matrix.Spectral.SVD.