NLA-lib Explorer

NLAlib.spectralMeasure_real

Library ยท theorem

The spectral measure of every set as a real number: for every square \mathbf{A}, every \mathbf{b} and every S \subseteq \mathbb{R}, \mu_{\mathbf{A},\mathbf{b}}(S) = \operatorname{Re}\,\mathbf{b}^{\mathsf{H}}\mathbf{1}_S(\mathbf{A})\mathbf{b}, the quadratic form of the spectral projector \mathbf{1}_S(\mathbf{A}); no measurability of S is needed.

NLAlib.spectralMeasure_real.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n]
  [DecidableEq n] (A : Matrix n n ๐•œ) (b : n โ†’ ๐•œ) (S : Set โ„) :
  (spectralMeasure A b).real S = RCLike.re (quadForm (cfc (S.indicator fun x โ†ฆ 1) A) b)

Full source on GitHub

Import NLAlib.Matrix.Spectral.SpectralMeasure.