NLA-lib Explorer

NLAlib.frobInner_eq_sum

Library ยท theorem

The Frobenius inner product as a sum over entries: \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}} = \sum_{i,j} \operatorname{Re}\bigl(\overline{\mathbf{A}_{i,j}} \, \mathbf{B}_{i,j}\bigr).

NLAlib.frobInner_eq_sum.{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 = โˆ‘ i, โˆ‘ j, RCLike.re (star (A i j) * B i j)

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.