NLA-lib Explorer

NLAlib.re_mul_diagonal_mul_conjTranspose_apply_self

Library Ā· theorem

The diagonal of \mathbf{Q} \operatorname{diag}(\boldsymbol{\lambda}) \mathbf{Q}^{\mathsf{H}}, for real \boldsymbol{\lambda}, is the image of \boldsymbol{\lambda} under the matrix of squared moduli of the entries of \mathbf{Q}: \operatorname{Re}(\mathbf{Q} \operatorname{diag}(\boldsymbol{\lambda}) \mathbf{Q}^{\mathsf{H}})_{i,i} = \sum_j \lvert \mathbf{Q}_{i,j} \rvert^2 \boldsymbol{\lambda}_j.

NLAlib.re_mul_diagonal_mul_conjTranspose_apply_self.{u_1, u_2} {š•œ : Type u_1} [RCLike š•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] (Q : Matrix n n š•œ) (lam : n → ā„) (i : n) :
  RCLike.re (((Q * diagonal fun j ↦ ↑(lam j)) * Qį““) i i) = ((of fun i j ↦ ‖Q i j‖ ^ 2) *ᵄ lam) i

Full source on GitHub

Import NLAlib.Matrix.Inequalities.SchurHorn.