Skip to content

Instantly share code, notes, and snippets.

@timurbakibayev
Created November 5, 2020 15:11
Show Gist options
  • Save timurbakibayev/7b33a804e5b1ea606beb7765577a2925 to your computer and use it in GitHub Desktop.
Save timurbakibayev/7b33a804e5b1ea606beb7765577a2925 to your computer and use it in GitHub Desktop.
Matrices Multiplication with Numpy
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