Re: [Numpy-discussion] Benchmak on record arrays

2009-05-29 Thread Stéfan van der Walt
Thanks, Nicolas. Your username has been changed to NicolasRougier and you can now edit the docs. Regards Stéfan 2009/5/28 Nicolas Rougier nicolas.roug...@loria.fr: I just created the account. Nicolas ___ Numpy-discussion mailing list

Re: [Numpy-discussion] Numpy vs PIL in image statistics

2009-05-29 Thread Dag Sverre Seljebotn
cp wrote: I don't know anything about PIL and its implementation, but I would not be surprised if the cost is mostly accessing items which are not contiguous in memory and bounds checking ( to check where you are in the subimage). Conditional inside loops often kills performances, and the

Re: [Numpy-discussion] sparse matrix dot product

2009-05-29 Thread Nicolas Rougier
Hi, I tried to post results but the file is too big, anyway, here is the benchmark program if you want to run it: Nicolas - import time import numpy from scipy import sparse def benchmark(xtype = 'numpy.array', xdensity = 0.1, ytype = 'numpy.array', ydensity = 1.0, n =

Re: [Numpy-discussion] Benchmak on record arrays

2009-05-29 Thread Nicolas Rougier
Thank for the clear answer, it definitely helps. Nicolas On Thu, 2009-05-28 at 19:25 +0200, Francesc Alted wrote: A Wednesday 27 May 2009 17:31:20 Nicolas Rougier escrigué: Hi, I've written a very simple benchmark on recarrays: import numpy, time Z = numpy.zeros((100,100),

Re: [Numpy-discussion] example reading binary Fortran file

2009-05-29 Thread David Froger
I think the FortranFile class is not intended to read arrays written with the syntax 'write(11) array1, array2, array3' (correct me if I'm wrong). This is the use in the laboratory where I'm currently completing a phd. I'm going to dive into struc, FotranFile etc.. to propose something

[Numpy-discussion] Installation problem with Numpy 1.3 on Windows AMD64

2009-05-29 Thread Dinesh B Vadhia
Hi! I just upgraded to Python 2.6.2 (from 2.5) on Windows AMD64 in order to use Numpy 1.3 for AMD64 and got the following error: - pythonw.exe has stopped working Numpy was installed both per-machine and per-user but the error persists. Python 2.6.2 works without Numpy. Any ideas? Dinesh

Re: [Numpy-discussion] example reading binary Fortran file

2009-05-29 Thread Neil Martinsen-Burrell
On 2009-05-29 10:12 , David Froger wrote: I think the FortranFile class is not intended to read arrays written with the syntax 'write(11) array1, array2, array3' (correct me if I'm wrong). This is the use in the laboratory where I'm currently completing a phd. You're half wrong. FortranFile