NLA-lib Explorer

NLAlib.frobNorm_sq_eq_re_trace

Library · theorem

The squared Frobenius norm is the real part of the trace of the Gram matrix: \|\mathbf{A}\|_{\mathsf{F}}^2 = \operatorname{Re} \operatorname{tr}(\mathbf{A}^{\mathsf{H}}\mathbf{A}).

NLAlib.frobNorm_sq_eq_re_trace.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_3}
  {n : Type u_4} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) :
  frobNorm A ^ 2 = RCLike.re (Aᴴ * A).trace

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.