NLAlib.inertiaPos_diagonal
Library · theorem
The positive index of a real diagonal matrix \operatorname{diag}(\mathbf{d}) is the number of indices i with \mathbf{d}_i > 0.
NLAlib.inertiaPos_diagonal.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [Fintype n]
[DecidableEq n] (d : n → ℝ) : inertiaPos (diagonal fun i ↦ ↑(d i)) = {i | 0 < d i}.cardImport NLAlib.Matrix.Spectral.Inertia.