Created
April 16, 2012 11:25
-
-
Save bayerj/2397894 to your computer and use it in GitHub Desktop.
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
#! /usr/bin/env python | |
import numpy | |
import time | |
try: | |
import numpy.core._dotblas | |
print 'Using ATLAS:' | |
except ImportError: | |
print 'No ATLAS:' | |
print numpy.__version__ | |
x = numpy.random.random((1000,1000)) | |
y = numpy.random.random((1000,1000)) | |
t = time.time() | |
for i in range(N): | |
numpy.dot(x, y) | |
print (time.time()-t) / 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment