Skip to content

Instantly share code, notes, and snippets.

@takatakamanbou
Last active October 5, 2015 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takatakamanbou/14391b6e42632215c7da to your computer and use it in GitHub Desktop.
Save takatakamanbou/14391b6e42632215c7da to your computer and use it in GitHub Desktop.
import numpy as np
import sys
if len(sys.argv) != 2:
exit('usage: %s n' % sys.argv[0])
n = int(sys.argv[1])
A = np.random.random( ( n, n ) )
B = np.random.random( ( n, n ) )
for t in range(10):
print 't = ', t
C = np.dot( A, B )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment