Advertisement
cheibol

Untitled

Mar 29th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import numpy as np
  2. from numpy.linalg import norm
  3. import time
  4.  
  5. m1 = np.random.randn(10000, 10000)
  6. m2 = np.random.randn(10000, 10000)
  7. print("Starting...")
  8. start = time.time()
  9. norm(np.dot(m1, m2))
  10. end = time.time()
  11. time_taken = end - start
  12. print("Time taken ", time_taken)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement