Skip to content

Instantly share code, notes, and snippets.

import time
from numpy import *
def dottest(type, dim):
t = time.time()
a = random.random((dim, dim)).astype(type)
b = random.random((dim, dim)).astype(type)
c = dot(a, b)
ct = time.time() - t
print "++++++++++++++++++++++++"