Returns the Kronecker tensor product of two matrices.
KRON(a, b)
a |
- |
A matrix. |
b |
- |
A matrix |
A matrix.
a = {{ 1, 2},
{-1, -2}}
b = {{10, 20},
{30, 40},
{50, 60}}
c = kron(a, b)
c == {{ 10, 20, 20, 40},
{ 30, 40, 60, 80},
{ 50, 60, 100, 120},
{-10, -20, -20, -40},
{-30, -40, -60, -80},
{-50, -60, -100, -120}}
For m = numrows(a) and n = numcols(b), kron(a, b) returns the array formed by the following product:
{{a[1, 1] * b, a[1, 2] * b, ... a[1, n] * b},
{a[2, 1] * b, a[2, 2] * b, ... a[2, n] * b},
...
{a[m, 1] * b, a[m, 2] * b, ... a[m, n] * b}}