NLA-lib Explorer

NLAlib.HasOrthonormalCols.matrixPerspective_mul_diagonal_mul_conjTranspose

Library · theorem

The perspective of two simultaneously diagonalised matrices is the scalar perspective a f(h/a) of the eigenvalues: for a frame \mathbf{U} with orthonormal columns and \lvert r \rvert = \lvert n \rvert, and real vectors \mathbf{a}, \mathbf{h} with the \mathbf{a}_i positive, \psi_f(\mathbf{U}\operatorname{diag}(\mathbf{a})\mathbf{U}^{\mathsf{H}}, \mathbf{U}\operatorname{diag}(\mathbf{h})\mathbf{U}^{\mathsf{H}}) = \mathbf{U}\operatorname{diag}\bigl(\mathbf{a}_i f(\mathbf{h}_i / \mathbf{a}_i)\bigr) \mathbf{U}^{\mathsf{H}} \,.

NLAlib.HasOrthonormalCols.matrixPerspective_mul_diagonal_mul_conjTranspose.{u_1, u_2, u_3}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {r : Type u_3} [Fintype r]
  [DecidableEq r] {U : Matrix n r 𝕜} (hU : HasOrthonormalCols U)
  (hr : Fintype.card r = Fintype.card n) (f : ℝ → ℝ) {a : r → ℝ} (ha : ∀ (i : r), 0 < a i)
  (h : r → ℝ) :
  matrixPerspective f ((U * diagonal fun i ↦ ↑(a i)) * Uᴴ) ((U * diagonal fun i ↦ ↑(h i)) * Uᴴ) =
    (U * diagonal fun i ↦ ↑(a i * f (h i / a i))) * Uᴴ

Full source on GitHub

Import NLAlib.Matrix.Functions.Perspective.