Kronecker product: Difference between revisions

Content added Content deleted
(→‎{{header|PARI/GP}}: added 2nd version)
Line 2,001: Line 2,001:


=={{header|Python}}==
=={{header|Python}}==

<lang Python>
In Python, the numpy library has the [https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.kron.html kron] function. The following is an implementation for "bare" lists of lists.
#!/usr/bin/env python3

<lang Python>#!/usr/bin/env python3


# Sample 1
# Sample 1