NLA-lib Explorer

NLAlib.lastRowWeights_conjTranspose_mul

Library · theorem

The last-row weights of \mathbf{Q}^{\mathsf{H}}\mathbf{V} are the squared overlaps with the last column of \mathbf{Q} ([BanksGarzaVargasSrivastava2025, Proposition 5.3], deterministic part): if the last column of \mathbf{Q} is c\,\mathbf{x} with \lvert c\rvert = 1, the weight of i is \frac{\lvert\langle \mathbf{x}, \mathbf{v}_i\rangle\rvert^2} {\|\mathbf{V}^{\mathsf{H}}\mathbf{x}\|^2}\,, \mathbf{v}_i the i-th column of \mathbf{V}. The phase c of a rotation to \mathbf{x} cancels, which the paper's reflector does not make explicit (its erratum P3).

NLAlib.lastRowWeights_conjTranspose_mul {n : ℕ} {Q V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {x : Fin (n + 1) → ℂ} {c : ℂ} (hc : ‖c‖ = 1)
  (hQx : ∀ (k : Fin (n + 1)), Q k (Fin.last n) = c * x k) (i : Fin (n + 1)) :
  lastRowWeights (Qᴴ * V) i = ‖star x ⬝ᵥ fun k ↦ V k i‖ ^ 2 / ‖WithLp.toLp 2 (Vᴴ *ᵥ x)‖ ^ 2

Full source on GitHub

Import NLAlib.Matrix.QRIteration.EigenvectorWeights.