scipy.linalg.kron

scipy.linalg.kron(a, b)

Kronecker product of a and b.

The result is the block matrix:

a[0,0]*b    a[0,1]*b  ... a[0,-1]*b
a[1,0]*b    a[1,1]*b  ... a[1,-1]*b
...
a[-1,0]*b   a[-1,1]*b ... a[-1,-1]*b
Parameters :

a : array, shape (M, N)

b : array, shape (P, Q)

Returns :

A : array, shape (M*P, N*Q)

Kronecker product of a and b

Examples

>>> from scipy import kron, array
>>> kron(array([[1,2],[3,4]]), array([[1,1,1]]))
array([[1, 1, 1, 2, 2, 2],
       [3, 3, 3, 4, 4, 4]])

Previous topic

scipy.linalg.hankel

Next topic

scipy.linalg.leslie

This Page