NLA-lib Explorer

NLAlib.frobInner_eq_re_trace_mul_conjTranspose

Library · theorem

The Frobenius inner product as the real part of the trace of \mathbf{A}\mathbf{B}^{\mathsf{H}}, by cyclicity of the trace: \operatorname{Re} \operatorname{tr}(\mathbf{A}^{\mathsf{H}}\mathbf{B}) = \operatorname{Re} \operatorname{tr}(\mathbf{A}\mathbf{B}^{\mathsf{H}}). The two traces are complex conjugates of each other, so only the real parts agree.

NLAlib.frobInner_eq_re_trace_mul_conjTranspose.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] (A B : Matrix m n 𝕜) :
  frobInner A B = RCLike.re (A * Bᴴ).trace

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.