Re: [Numpy-discussion] ising model: f2py vs cython comparison

2007-12-22 Thread Travis E. Oliphant
Ondrej Certik wrote: > Hi, > > I need to write 2D Ising model simulation into my school, so I wrote > it in Python, then rewrote it in Fortran + f2py, and also Cython: > > http://hg.sharesource.org/isingmodel/ > > And Cython solution is 2x faster than f2py. I understand, that I am > comparing many

Re: [Numpy-discussion] ising model: f2py vs cython comparison

2007-12-22 Thread Ondrej Certik
On Dec 23, 2007 2:29 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi, > > I need to write 2D Ising model simulation into my school, so I wrote > it in Python, then rewrote it in Fortran + f2py, and also Cython: > > http://hg.sharesource.org/isingmodel/ > > And Cython solution is 2x faster than f2

[Numpy-discussion] ising model: f2py vs cython comparison

2007-12-22 Thread Ondrej Certik
Hi, I need to write 2D Ising model simulation into my school, so I wrote it in Python, then rewrote it in Fortran + f2py, and also Cython: http://hg.sharesource.org/isingmodel/ And Cython solution is 2x faster than f2py. I understand, that I am comparing many things - wrappers, my fortran coding

Re: [Numpy-discussion] [SciPy-dev] SciPy Sprint results

2007-12-22 Thread Stefan van der Walt
Hi Eric On Fri, Dec 21, 2007 at 08:13:13AM -1000, Eric Firing wrote: > I think the description of the putmask difference is missing the point. > The real difference is not in the way the third argument is handled, > or its required shape, but in whether the mask is updated or not. This behav