NLA-lib Explorer

NLAlib.IsBestRankApprox

Library · structure

\mathbf{Y} is a best approximation of \mathbf{C} of rank at most k: it has rank at most k and no matrix of rank at most k is closer to \mathbf{C} in the Frobenius norm. Then the error has the singular values \sigma_{k+i}(\mathbf{C}) (NLAlib.IsBestRankApprox.singularValues_sub), so \mathbf{Y} is a best approximation in every unitarily invariant norm (NLAlib.IsBestRankApprox.matrixNorm_sub). The truncated SVD is one (NLAlib.isBestRankApprox_truncatedSVD); under ties \sigma_{k-1} = \sigma_k there are others, and an algorithm's \mathbf{Q}\llbracket\mathbf{X}\rrbracket_k need not be truncatedSVD (Q * X) k. [GolubVanLoan2013, Theorem 2.4.8]; [HornJohnson2013, §7.4.9]; [HalkoMartinssonTropp2011, §2.1].

NLAlib.IsBestRankApprox.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3}
  [Fintype m] [Fintype n] (C : Matrix m n 𝕜) (k : ℕ) (Y : Matrix m n 𝕜) : Prop

Full source on GitHub

Import NLAlib.Matrix.Spectral.BestRankApprox.