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โ ^ 2Import NLAlib.Matrix.Functions.HermitianCalculus.