Vectors and matrices

a⊗b\mathbf{a} \otimes \mathbf{b} Tensor / Kronecker product

An outer, Kronecker or tensor product: every entry of one times every entry of the other.

In ML papers

a⊗b\mathbf{a} \otimes \mathbf{b} multiplies every entry of a\mathbf{a} by every entry of b\mathbf{b}. For two vectors it is the outer product, a matrix (the same as ab⊤\mathbf{a}\mathbf{b}^\top). For two matrices it is the Kronecker product, a block matrix, used in second-order optimizers such as K-FAC and Shampoo.

Other meanings, by context

How to type it

LaTeXShows
\otimes⊗\otimes

A worked example

(12)⊗(34)=(3468)\begin{pmatrix} 1 \\ 2 \end{pmatrix} \otimes \begin{pmatrix} 3 \\ 4 \end{pmatrix} = \begin{pmatrix} 3 & 4 \\ 6 & 8 \end{pmatrix}

Two 2-vectors give a 2×22 \times 2 matrix.

Related

a⊙b\mathbf{a} \odot \mathbf{b}Hadamard (elementwise) productx⊤y\mathbf{x}^\top \mathbf{y}TransposeRn×d\mathbb{R}^{n \times d}Times (cross)

Decode this example →