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