Current File : //usr/lib64/python2.7/site-packages/numpy/lib/benchmarks/simpleindex.pyo
�
E�`Qc@s�ddlZdZdeefZdeefZdeefZdeeeefZejedeef�Zejedeef�Zejed	eef�Z	ejedeef�Z
ejee�Zejd
deef�ZdGeefGHd
Gej
dd�GHdGe
j
dd�GHdGej
dd�GHdGe	j
dd�GHdGej
dd�GHdGej
dd�GHdS(i����Nis[
for k in xrange(%d):
    for l in xrange(%d):
        res = a[k,l].item() + a[l,k].item()
sO
for k in xrange(%d):
    for l in xrange(%d):
        res = a[k][l] + a[l][k]
sM
for k in xrange(%d):
    for l in xrange(%d):
        res = a[k,l] + a[l,k]
s�
import random
a = [[None for k in xrange(%d)] for l in xrange(%d)]
for k in xrange(%d):
    for l in xrange(%d):
        a[k][l] = random.random()
s-import numpy as np; a = np.random.rand(%d,%d)s#import MLab as np; a=np.rand(%d,%d)s,import numarray.mlab as np; a=np.rand(%d,%d)sres = a + a.transpose()s+import numpy as np; a=np.random.rand(%d,%d)sshape = s	NumPy 1: iids	NumPy 2: s	Numeric: s
Numarray: sPython: sOptimized: (ttimeittNtcode2tcode3tcodetsetup3tTimertnumpy_timer1t
numeric_timertnumarray_timertnumpy_timer2tpython_timertnumpy_timer3trepeat(((sF/usr/lib64/python2.7/site-packages/numpy/lib/benchmarks/simpleindex.pyt<module>s$