Created
March 24, 2022 19:31
-
-
Save prehensilecode/c18eeb5876c6c8b64ec681ad691e6910 to your computer and use it in GitHub Desktop.
Sample numpy for git demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
import numpy as np | |
text = [[4, 3, 8, 9, 5, 1, 2, 7, 6], [8, 3, 4, 1, 5, 9, 6, 7, 2], | |
[6, 1, 8, 7, 5, 3, 2, 9, 4], [6, 9, 8, 7, 5, 3, 2, 1, 4], | |
[6, 1, 8, 7, 5, 3, 2, 1, 4], [6, 1, 3, 2, 9, 4, 8, 7, 5]] | |
text = np.array(text) | |
A = text[0].reshape((3,3)) | |
B = text[0].reshape((3,3)) | |
print(np.matmul(A, B)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment