Skip to content

Instantly share code, notes, and snippets.

@prehensilecode
Created March 24, 2022 19:31
Show Gist options
  • Save prehensilecode/c18eeb5876c6c8b64ec681ad691e6910 to your computer and use it in GitHub Desktop.
Save prehensilecode/c18eeb5876c6c8b64ec681ad691e6910 to your computer and use it in GitHub Desktop.
Sample numpy for git demo
#!/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