Kronecker product: Difference between revisions

Content added Content deleted
(J draft)
Line 1,004: Line 1,004:
=={{header|J}}==
=={{header|J}}==


We can build Kronecker product from tensor outer product by transposing the result and then merging some dimensions.
Explicit:

Explicit implementation:


<lang J>KP=: dyad def ',/"2 ,/ 1 3 |: x */ y'</lang>
<lang J>KP=: dyad def ',/"2 ,/ 1 3 |: x */ y'</lang>