NLA-lib Explorer

NLAlib.frobInner_eq_sum_mul

Library · theorem

Over \mathbb{R} the Frobenius inner product is the sum of the products of the entries, \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}} = \sum_{i,j} \mathbf{A}_{i,j}\mathbf{B}_{i,j}. This is NLAlib.frobInner_eq_sum with the conjugation and the real part removed, the form to rewrite with under an integral or a sum.

NLAlib.frobInner_eq_sum_mul.{u_3, u_4} {m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n]
  (A B : Matrix m n ℝ) : frobInner A B = ∑ i, ∑ j, A i j * B i j

Full source on GitHub

Import NLAlib.Matrix.Norms.Frobenius.