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

2007-12-23 Thread Pearu Peterson
On Sun, December 23, 2007 3:29 am, 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 unde

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

2007-12-23 Thread Pearu Peterson
On Sun, December 23, 2007 3:29 am, 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 unde

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