Yes,
On 8/19/06, Joris De Ridder <jo...@st...> 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
|