Frobenius inner product

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Refimprove In mathematics, the Frobenius inner product is a binary operation that takes two matrices and returns a scalar. It is often denoted 𝐀,𝐁F. The operation is a component-wise inner product of two matrices as though they are vectors, and satisfies the axioms for an inner product. The two matrices must have the same dimensionβ€”same number of rows and columnsβ€”but are not restricted to be square matrices.

Definition

Given two complex-number-valued nΓ—m matrices A and B, written explicitly as

𝐀=(A11A12A1mA21A22A2mAn1An2Anm),𝐁=(B11B12B1mB21B22B2mBn1Bn2Bnm),

the Frobenius inner product is defined as

𝐀,𝐁F=i,jAijBij=Tr(𝐀T𝐁)Tr(𝐀𝐁),

where the overline denotes the complex conjugate, and denotes the Hermitian conjugate.[1] Explicitly, this sum is

𝐀,𝐁F=A11B11+A12B12++A1mB1m+A21B21+A22B22++A2mB2m+An1Bn1+An2Bn2++AnmBnm

The calculation is very similar to the dot product, which in turn is an example of an inner product.

Relation to other products

If A and B are each real-valued matrices, then the Frobenius inner product is the sum of the entries of the Hadamard product. If the matrices are vectorized (i.e., converted into column vectors, denoted by "vec()"), then

vec(𝐀)=(A11A12A21A22Anm),vec(𝐁)=(B11B12B21B22Bnm),vec(𝐀)Tvec(𝐁)=(A11A12A21A22Anm)(B11B12B21B22Bnm)

Therefore

𝐀,𝐁F=vec(𝐀)Tvec(𝐁).Template:Citation needed

Properties

Like any inner product, it is a sesquilinear form, for four complex-valued matrices A, B, C, D, and two complex numbers a and b:

a𝐀,b𝐁F=ab𝐀,𝐁F
𝐀+𝐂,𝐁+𝐃F=𝐀,𝐁F+𝐀,𝐃F+𝐂,𝐁F+𝐂,𝐃F

Also, exchanging the matrices amounts to complex conjugation:

𝐁,𝐀F=𝐀,𝐁F

For the same matrix, the inner product induces the Frobenius norm

𝐀,𝐀F=𝐀F20,[1]

and is zero for a zero matrix,

𝐀,𝐀F=0𝐀=𝟎.

Examples

Real-valued matrices

For two real-valued matrices, if

𝐀=(206112),𝐁=(832415),

then

𝐀,𝐁F=28+0(3)+62+14+(1)1+2(5)=21.

Complex-valued matrices

For two complex-valued matrices, if

𝐀=(1+i2i35),𝐁=(23i43i6),

then

𝐀,𝐁F=(1i)(2)+2i3i+3(43i)+(5)6=267i,

while

𝐁,𝐀F=(2)(1+i)+(3i)(2i)+(4+3i)3+6(5)=26+7i.

The Frobenius inner products of A with itself, and B with itself, are respectively

𝐀,𝐀F=2+4+9+25=40𝐁,𝐁F=4+9+25+36=74.

See also

References

Template:Algebra-footer