> I don't see a difference on my computer. Could you post an example? I'm attaching a small benchmark script. It multiplies two example arrays loaded from the file "data" (which you can download from http://zhuliguan.net/data (157K)), and compares this with multiplying two random arrays. On two different machines I get an output like the following:
$ python mm.py 0.0121581554413 0.000909090042114 So the example arrays take more than 10 times as long! Hope this helps in understanding what's going on... Cheers, Hagen
from time import time
from numpy.random import random
from numpy import dot, array, load
f = open("data")
a = load(f)
b = load(f)
f.close()
t = time()
dot(a, b)
print(time()-t)
assert a.shape == b.shape == (100, 100)
x = random((100, 100))
y = random((100, 100))
t = time()
dot(x, y)
print(time()-t)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
