Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from numpy.linalg import norm
- import time
- m1 = np.random.randn(10000, 10000)
- m2 = np.random.randn(10000, 10000)
- print("Starting...")
- start = time.time()
- norm(np.dot(m1, m2))
- end = time.time()
- time_taken = end - start
- print("Time taken ", time_taken)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement