NLAlib.frobInner
Library · def
The real Frobenius inner product \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}} = \operatorname{Re} \operatorname{tr}(\mathbf{A}^{\mathsf{H}}\mathbf{B}) = \sum_{i,j} \operatorname{Re}\bigl(\overline{\mathbf{A}_{i,j}} \, \mathbf{B}_{i,j}\bigr)\,. It is real-valued and real-bilinear; the 𝕜-valued pairing is Mathlib's (Aᴴ * B).trace.
NLAlib.frobInner.{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 𝕜) : ℝImport NLAlib.Matrix.Norms.Frobenius.