Hadamard product

from Wikipedia, the free encyclopedia
In the Hadamard product, all matrices involved have the same number of columns and rows.

The Hadamard product , Schur product , component-wise product or element-wise product is a special product of two matrices of the same size in mathematics . The resulting matrix is ​​obtained by multiplying the corresponding entries of the two output matrices . The Hadamard product is associative , with matrix addition distributive and commutative if the underlying ring is also commutative.

The Hadamard product has some interesting properties. For example, the Hadamard product of two positively semidefinite matrices is again positively semidefinite. Various parameters (such as norm , rank or spectral radius ) of the Hadamard product can also be estimated using the product of the respective parameters of the output matrices. In comparison to the more complex matrix product, the Hadamard product is less important in practice. It is named after the mathematicians Jacques Hadamard and Issai Schur .

definition

When calculating the Hadamard product, the matrix entries are multiplied with one another component by component.

If a ring is and are and two matrices are over , then the Hadamard product of and through

Are defined. The result is a matrix of the same size, with each entry being calculated by component-wise multiplication of the entries in the matrix with the entries in the matrix . The sign is occasionally used as an operator symbol for the Hadamard product .

example

The Hadamard product of the two real (2 × 2) matrices

  and  

is given by

.

properties

Laws of Calculation

The Hadamard product essentially inherits the properties of the underlying ring. It is always associative , ie for matrices applies

,

and it is compatible with the multiplication of scalars , so

.

If the underlying ring is commutative , then the Hadamard product is also commutative, that is

,

where it differs from the die product normally used . With the component-wise matrix addition, the distributive laws also apply

  and   .

The following also applies to the transposed matrix of a Hadamard product

.

The Hadamard product of two symmetric matrices is therefore symmetric again.

Algebraic structures

The number of matrices above a ring forms a ring again with the matrix addition and the Hadamard product . If a unitary ring with a one element , then the matrix ring also has a one element, the one matrix , in which all elements are the same . With the one matrix then applies to all matrices

.

If there is a field , then a matrix is ​​called Hadamard-invertible if all entries are not equal to the zero element . The set of Hadamard invertible matrices then forms a group , with the entries being the Hadamard inverses of by

given are. In the following, only matrices over the field of real or complex numbers are considered.

Positive definiteness

If the square matrices are positive semidefinite , then their Hadamard product is also positive semidefinite and holds for the eigenvalues ​​of

.

If positive is definite and positive is semidefinite with positive main diagonal entries , then the Hadamard product is also positive definite. These statements go back to Issai Schur , who first formulated them in 1911.

Estimates

Spectral standard

If the square matrix is positive definite, then the spectral norm of a Hadamard product applies

.

If the product of two matrices then holds

,

where is the maximum Euclidean norm of the column vectors of . Overall, one obtains the following estimate:

.

These three estimates can also be traced back to Issai Schur.

Kronecker product

The result of the Kronecker product is a large matrix, which is created by considering all possible products of entries in the two output matrices. If the matrices are , then the entries of the Hadamard product can be found exactly at the intersection of the columns with the rows of the corresponding Kronecker product. The Hadamard product is thus a sub-matrix of the Kronecker product. Therefore, the spectral standard of a Hadamard product applies

and for the rank of Hadamard product

.

If you have two matrices and only non-negative entries, then this also applies to and . If there and are square, then the following applies to the spectral radius (the absolute value of the greatest eigenvalue ) of a Hadamard product

.

Induced sesquilinear form

For diagonal matrices (and only for these) the Hadamard product and the normal matrix product are the same:

.

If there are any two (column) vectors and two diagonal matrices with entries from and on the diagonal, then applies

.

Thus, the sesquilinear form produced by the Hadamard product can be written as a track . From this, for example, the sub-multiplicativity of the Frobenius norm with respect to the Hadamard product follows:

.

programming

The Hadamard product is integrated into programming systems in different ways:

  • In the numerical software package Matlab , the Hadamard product is represented by the symbol combination .*, while stands *for the matrix product .
  • In the Fortran programming language , the Hadamard product is *implemented using the simple multiplication operator , while a separate routine matmulis available for matrix multiplication . These names were also adopted for NumPy in Python .
  • In the statistical software R , the Hadamard product is *represented by, while the matrix multiplication is %*%implemented by.

literature

  • Roger A. Horn: The Hadamard Product . In: Charles R. Johnson (Ed.): Matrix Theory and Applications (=  Proceedings of Symposia in Applied Mathematics . Volume 40 ). American Mathematical Society, Providence RI 1990, ISBN 0-8218-0154-6 , pp. 87-170 .
  • Roger A. Horn, Charles R. Johnson: Topics in Matrix Analysis. 1st paperback edition. Cambridge University Press, Cambridge et al. 1994, ISBN 0-521-46713-6 , pp. 298-381.

Individual evidence

  1. a b c Horn: The Hadamard Product. In: Johnson (Ed.): Matrix Theory and Applications. 1990, pp. 87-170, here p. 88.
  2. ^ Christian Voigt, Jürgen Adamy: Collection of formulas for the matrix calculation . Oldenbourg, Munich et al. 2007, ISBN 978-3-486-58350-2 , pp. 13 .
  3. a b Horn: The Hadamard Product. In: Johnson (Ed.): Matrix Theory and Applications. 1990, pp. 87-170, here p. 95.
  4. a b c Horn: The Hadamard Product. In: Johnson (Ed.): Matrix Theory and Applications. 1990, pp. 87-170, here pp. 96-100.
  5. a b Horn: The Hadamard Product. In: Johnson (Ed.): Matrix Theory and Applications. 1990, pp. 87-170, here pp. 100-104.
  6. Christoph Überhuber , Stefan Katzenbeisser, Dirk Praetorius: MATLAB 7. An introduction . Springer, Vienna et al. 2005, ISBN 3-211-21137-3 , p. 81 .