NLA-lib Explorer

NLAlib.intrinsicDimension

Library · def

The intrinsic dimension of a matrix: the ratio of its trace to its spectral norm, \operatorname{intdim}(\mathbf{A}) = \operatorname{Re} \operatorname{tr} \mathbf{A} / \|\mathbf{A}\|_2 (Lean's division by zero gives 0 for \mathbf{A} = \mathbf{0}). For a nonzero positive semidefinite matrix it lies between 1 and the rank. [Tropp2015, Definition 7.1.1].

NLAlib.intrinsicDimension.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [Fintype n]
  (A : Matrix n n 𝕜) : ℝ

Full source on GitHub

Import NLAlib.Matrix.Functions.TraceFunctions.