The Frobenius inner product (often written just ) is an operation for taking two matrices and returning a scalar. For real matrices, it is the sum of the entries in the Hadamard product. It can be shown that Where is the trace of .