NLA-lib Explorer

NLAlib.ShiftedQR.sum_sq_matrixWords

Library · theorem

The squared Euclidean norm of every interleaved component word is the complex matrix's squared Frobenius norm. The equality uses the existing pair codec and its column-major order.

NLAlib.ShiftedQR.sum_sq_matrixWords {rows cols : ℕ} (H : Matrix (Fin rows) (Fin cols) ℂ) :
  ∑ q ∈ Finset.range (2 * (cols * rows)), Ops.vec (matrixWords H) q ^ 2 = frobNorm H ^ 2

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.StorageNorm.