summaryrefslogtreecommitdiff
path: root/benchmarks/simpleindex.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-18 07:14:06 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-18 07:14:06 +0000
commit3acb430d1422a16f9bf705fb31cef2c53b3ba9b0 (patch)
treeb304ca8f17dc9aa63b73be285fe1d2e8a46bfb0c /benchmarks/simpleindex.py
parentae4de66c4d02e6616750b04e2fed76805fab14e0 (diff)
downloadnumpy-3acb430d1422a16f9bf705fb31cef2c53b3ba9b0.tar.gz
Fix to example.
Diffstat (limited to 'benchmarks/simpleindex.py')
-rw-r--r--benchmarks/simpleindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/simpleindex.py b/benchmarks/simpleindex.py
index 462fad536..6b1a63d34 100644
--- a/benchmarks/simpleindex.py
+++ b/benchmarks/simpleindex.py
@@ -29,7 +29,7 @@ for k in xrange(%d):
""" % (N,N,N,N)
t1 = timeit.Timer(code, 'import numpy as N; a = N.random.rand(%d,%d)' % (N,N))
t2 = timeit.Timer(code, 'import MLab as N; a=N.rand(%d,%d)' % (N,N))
-t3 = timeit.Timer(code, 'import numarray.mlab as N; a=N.random.rand(%d,%d)' % (N,N))
+t3 = timeit.Timer(code, 'import numarray.mlab as N; a=N.rand(%d,%d)' % (N,N))
t4 = timeit.Timer(code2, 'import numpy as N; a = N.random.rand(%d,%d)' % (N,N))
t5 = timeit.Timer(code3, setup3)
t6 = timeit.Timer("res = a + a.transpose()","import numpy as N; a=N.random.rand(%d,%d)" % (N,N))