NLA-lib Explorer

NLAlib.HasOrthonormalCols.re_quadForm_cfc_eq_sum

Library ยท theorem

The quadratic form of f(\mathbf{A}) through a unitary diagonalisation \mathbf{A} = \mathbf{U}\operatorname{diag}(\mathbf{d})\mathbf{U}^{\mathsf{H}}, \mathbf{d} real, with \mathbf{U} having orthonormal columns and as many columns as rows, on any column index type: \operatorname{Re}(\mathbf{x}^{\mathsf{H}} f(\mathbf{A}) \mathbf{x}) = \sum_i f(\mathbf{d}_i) \, \lvert (\mathbf{U}^{\mathsf{H}}\mathbf{x})_i \rvert^2 \,. This is the identity behind Gauss quadrature for \mathbf{x}^{\mathsf{H}} f(\mathbf{A}) \mathbf{x}.

NLAlib.HasOrthonormalCols.re_quadForm_cfc_eq_sum.{u_1, u_3, u_4} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_3} [Fintype n] [DecidableEq n] {r : Type u_4} [Fintype r] [DecidableEq r]
  {A : Matrix n n ๐•œ} {U : Matrix n r ๐•œ} {d : r โ†’ โ„} (hU : HasOrthonormalCols U)
  (hr : Fintype.card r = Fintype.card n) (hA : A = (U * diagonal fun i โ†ฆ โ†‘(d i)) * Uแดด) (f : โ„ โ†’ โ„)
  (x : n โ†’ ๐•œ) : RCLike.re (quadForm (cfc f A) x) = โˆ‘ i, f (d i) * โ€–(Uแดด *แตฅ x) iโ€– ^ 2

Full source on GitHub

Import NLAlib.Matrix.Functions.HermitianCalculus.