aboutsummaryrefslogtreecommitdiff
path: root/challenge-170/eric-cheung/python/ch-2.py
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2022-06-21 23:08:48 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2022-06-21 23:08:48 +0100
commita4d938c1da515f1f8f01b0a787762e4f1629ff77 (patch)
tree0a49b9cf17b202b22944d5e60a937013b174a644 /challenge-170/eric-cheung/python/ch-2.py
parent0def6253a73ebfb246fae98bf1c972e4fa94e89d (diff)
downloadperlweeklychallenge-club-a4d938c1da515f1f8f01b0a787762e4f1629ff77.tar.gz
perlweeklychallenge-club-a4d938c1da515f1f8f01b0a787762e4f1629ff77.tar.bz2
perlweeklychallenge-club-a4d938c1da515f1f8f01b0a787762e4f1629ff77.zip
- Added guest contributions by Eric Cheung.
Diffstat (limited to 'challenge-170/eric-cheung/python/ch-2.py')
-rwxr-xr-xchallenge-170/eric-cheung/python/ch-2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-170/eric-cheung/python/ch-2.py b/challenge-170/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..eefde0cc1a
--- /dev/null
+++ b/challenge-170/eric-cheung/python/ch-2.py
@@ -0,0 +1,10 @@
+
+import numpy as np
+
+matA = [[1, 2], [3, 4]]
+matB = [[5, 6], [7, 8]]
+
+arrKP = np.kron(matA, matB)
+
+print (arrKP)
+