# kron() Function & Examples

Use the kron() matrix function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## kron

#### kron(x, y)

Try it yourself:

```calculio
kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])
kron([1,1], [2,3,4])
```

[multiply](https://calcul.io/function/multiply/index.md)

[dot](https://calcul.io/function/dot/index.md)

[cross](https://calcul.io/function/cross/index.md)

---

## kron(): The Kronecker Product

**kron()** forms the Kronecker product of two arrays or matrices. It replaces each entry of the first matrix with a scaled copy of the second, creating a larger block matrix. This is useful in tensor-style calculations, repeated systems, image transforms, and structured linear algebra.

## Shape and scale

If A is m×n and B is p×q, kron(A, B) is mp×nq. The output can grow quickly, so inspect dimensions with [size()](https://calcul.io/function/size/index.md) before applying it to large inputs. kron is not ordinary [multiply()](https://calcul.io/function/multiply/index.md) and not entry-wise [dotMultiply()](https://calcul.io/function/dotMultiply/index.md).

Use [identity()](https://calcul.io/function/identity/index.md) to build repeated block structures, and [reshape()](https://calcul.io/function/reshape/index.md) only when rearranging the resulting entries is mathematically intended.

[All functions](https://calcul.io/functions/index.md)
