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

๐€=(A11A12โ‹ฏA1mA21A22โ‹ฏA2mโ‹ฎโ‹ฎโ‹ฑโ‹ฎAn1An2โ‹ฏAnm),๐=(B11B12โ‹ฏB1mB21B22โ‹ฏB2mโ‹ฎโ‹ฎโ‹ฑโ‹ฎBn1Bn2โ‹ฏBnm),

the Frobenius inner product is defined as

โŸจ๐€,๐โŸฉF=โˆ‘i,jAijโ€พBij=Tr(๐€Tโ€พ๐)โ‰กTr(๐€โ€ ๐),

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

โŸจ๐€,๐โŸฉF=Aโ€พ11B11+Aโ€พ12B12+โ‹ฏ+Aโ€พ1mB1m+Aโ€พ21B21+Aโ€พ22B22+โ‹ฏ+Aโ€พ2mB2mโ‹ฎ+Aโ€พn1Bn1+Aโ€พn2Bn2+โ‹ฏ+Aโ€พnmBnm

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(๐€)=(A11A12โ‹ฎA21A22โ‹ฎAnm),vec(๐)=(B11B12โ‹ฎB21B22โ‹ฎBnm),vec(๐€)โ€พTvec(๐)=(Aโ€พ11Aโ€พ12โ‹ฏAโ€พ21Aโ€พ22โ‹ฏAโ€พnm)(B11B12โ‹ฎB21B22โ‹ฎBnm)

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=aโ€พbโŸจ๐€,๐โŸฉ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=โ€–๐€โ€–F2โ‰ฅ0,[1]

and is zero for a zero matrix,

โŸจ๐€,๐€โŸฉF=0โŸบ๐€=๐ŸŽ.

Examples

Real-valued matrices

For two real-valued matrices, if

๐€=(2061โˆ’12),๐=(8โˆ’3241โˆ’5),

then

โŸจ๐€,๐โŸฉF=2โ‹…8+0โ‹…(โˆ’3)+6โ‹…2+1โ‹…4+(โˆ’1)โ‹…1+2โ‹…(โˆ’5)=21.

Complex-valued matrices

For two complex-valued matrices, if

๐€=(1+iโˆ’2i3โˆ’5),๐=(โˆ’23i4โˆ’3i6),

then

โŸจ๐€,๐โŸฉF=(1โˆ’i)โ‹…(โˆ’2)+2iโ‹…3i+3โ‹…(4โˆ’3i)+(โˆ’5)โ‹…6=โˆ’26โˆ’7i,

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