Kronecker Product: A Tutorial

Xinyu Chen (陈新宇)
3 min readJun 13, 2023

Kronecker product is an operation in matrix and tensor computations, playing an important role in many machine learning models. Today, we intend to give a brief introduction to Kronecker product and present some examples for describing the properties of Kronecker product.

Definition of Kronecker Product

For any m-by-n matrix X and p-by-q matrix Y, then the Kronecker product is defined as follows,

where the symbol ⊗ denotes the Kronecker product. The resulting matrix XY is of size (mp) × (nq), which is also a block matrix with mn blocks.

Following the above definition, we can also introduce the following one:

which has pq blocks. This matrix YX is very different from the above matrix XY, though they have same size.

From this toy example, we can find that YX is different from XY. The following example shows the transpose on the Kronecker product.

The above examples of Kronecker product work on matrices. We can also introduce the Kronecker product to vectors.

--

--

Xinyu Chen (陈新宇)

PhD at University of Montreal. My interests are Machine Learning, Spatiotemporal Data Modeling & Intelligent Transportation. https://xinychen.github.io