Created
November 5, 2020 15:11
-
-
Save timurbakibayev/7b33a804e5b1ea606beb7765577a2925 to your computer and use it in GitHub Desktop.
Matrices Multiplication with Numpy
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
n = 1000 | |
a = np.ones((n,n)) | |
b = np.ones((n,n)) | |
start_time = time.time() | |
c = a.dot(b) | |
print(f"I did it in {time.time() - start_time} sec.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment