NLAlib.truncatedSVD
Library ยท def
The truncated singular value decomposition \llbracket \mathbf{A} \rrbracket_k: a best approximation of \mathbf{A} of rank at most k, obtained from the chosen thin singular value decomposition \mathbf{A} = \mathsf{svdU}(\mathbf{A})\,\mathbf{\Sigma}\, \mathsf{svdV}(\mathbf{A})^{\mathsf{H}}, the lexicographically least one (NLAlib.svdU, NLAlib.svdV), by keeping the k largest singular values: \llbracket \mathbf{A} \rrbracket_k = \mathsf{svdU}(\mathbf{A})\, \operatorname{diag}\bigl(\sigma_0(\mathbf{A}), \dots, \sigma_{k-1}(\mathbf{A}), 0, \dots, 0\bigr)\, \mathsf{svdV}(\mathbf{A})^{\mathsf{H}} (NLAlib.truncatedSVD_def). The decomposition is a fixed function of \mathbf{A}, so the truncation is Borel measurable in \mathbf{A} (NLAlib.measurable_truncatedSVD), and one decomposition serves every k. When \sigma_{k-1}(\mathbf{A}) = \sigma_k(\mathbf{A}) this is one of several best approximations. For k \ge \operatorname{rank} \mathbf{A} it is \mathbf{A}. [GolubVanLoan2013, Theorem 2.4.8].
NLAlib.truncatedSVD.{u_1, u_2, u_3} {๐ : Type u_1} [RCLike ๐] {m : Type u_2} {n : Type u_3}
[Fintype m] [Fintype n] (A : Matrix m n ๐) (k : โ) : Matrix m n ๐Import NLAlib.Matrix.Spectral.LowRank.