On 8/19/06, Joris De Ridder <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Some of my code is heavily using large complex arrays, and I noticed a speed
> degression in NumPy 1.0b2 with respect to Numarray. The following code snippet
> is an example that on my computer runs 10% faster in Numarray than in NumPy.
>
> >>> A = zeros(1000000, complex)
> >>> for k in range(1000):
> ... A *= zeros(1000000, complex)
>
> (I replaced 'complex' with 'Complex' in Numarray). Can anyone confirm this?
I see this too.
In [242]: t1 = timeit.Timer('a *= nx.zeros(1000000,"D")','import numarray as nx; a = nx.zeros(1000000,"D")')
In [243]: t2 = timeit.Timer('a *= nx.zeros(1000000,"D")','import numpy as nx; a = nx.zeros(1000000,"D")')
In [244]: t1.repeat(3,100)
Out[244]: [5.184194803237915, 5.1135070323944092, 5.1053409576416016]
In [245]: t2.repeat(3,100)
Out[245]: [5.5170519351959229, 5.4989008903503418, 5.479154109954834]
Chuck
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion