NLA-lib Explorer

NLAlib.pseudoConditionNumber

Library · def

The pseudo-condition number \|\mathbf{A}\|_2 \|\mathbf{A}^{+}\|_2, that is specNorm A * specNorm (pinv A), of a matrix of any shape: the ratio of its largest singular value to its smallest nonzero singular value, computed through the pseudoinverse, and 0 for the zero matrix.

It is not the classical condition number \sigma_0(\mathbf{A}) / \sigma_{\min}(\mathbf{A}) on singular or rank-deficient matrices, where the classical one is infinite: it ignores the zero singular values, so a nonzero singular orthogonal projector (\operatorname{diag}(1, 0), or any \mathbf{P} with IsStarProjection P, \mathbf{P} \ne \mathbf{0}, \mathbf{P} \ne \mathbf{I}) has pseudo-condition number 1. For a matrix of full column rank it agrees with the classical one, \sigma_0(\mathbf{A}) / \sigma_{\min}(\mathbf{A}) (pseudoConditionNumber_of_injective), and for an invertible matrix it is the classical \kappa(\mathbf{A}) = \|\mathbf{A}\|_2 \|\mathbf{A}^{-1}\|_2 (pseudoConditionNumber_of_isUnit); theorems about the classical condition number assume invertibility or full column rank. [GolubVanLoan2013, §2.6.2 and §5.3.7].

NLAlib.pseudoConditionNumber.{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 𝕜) : ℝ

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.ConditionNumber.