Charles R Harris wrote: > Yes, > > On 8/19/06, Joris De Ridder <[EMAIL PROTECTED] > <mailto:[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? > The multiply (and divide functions) for complex arrays were using the "generic interface" (probably because this is what Numeric did) which calls out to a function to compute each result. I just committed a switch to "in-line" the multiplication and division calls.
The speed-up is about that 10%. Now, my numarray and NumPy versions of the test are very similar. -Travis ------------------------------------------------------------------------- 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