Re: [Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread Robin
Hi, Thanks On Thu, Oct 15, 2009 at 4:10 PM, Andrew Hawryluk wrote: >> But I have some questions. It seems to work as is, but I don't set c > to >> zeros anywhere. Can I assume arrays created by f2py are zero? > > As I understand it, uninitialized variables in Fortran are > compiler/system-depend

Re: [Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread Andrew Hawryluk
> -Original Message- > From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion- > boun...@scipy.org] On Behalf Of Robin > Sent: 15 Oct 2009 6:54 AM > To: numpy-discussion@scipy.org > Subject: Re: [Numpy-discussion] extension questions: f2py and cython &g

Re: [Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread Andrew Hawryluk
> -Original Message- > From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion- > boun...@scipy.org] On Behalf Of Robin > Sent: 15 Oct 2009 4:37 AM > To: numpy-discussion@scipy.org > Subject: [Numpy-discussion] extension questions: f2py and cython > >

Re: [Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread josef . pktd
On Thu, Oct 15, 2009 at 8:53 AM, Robin wrote: > Hi, > > I have another question about distributing a Python extension which > uses f2py wrapped code. Ideally I'd like to keep pure Python/Numpy > alternatives and just use fortran version if available - but I think > that should be OK. > > I'm more

Re: [Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread Robin
Hi, I have another question about distributing a Python extension which uses f2py wrapped code. Ideally I'd like to keep pure Python/Numpy alternatives and just use fortran version if available - but I think that should be OK. I'm more worried about distributing binaries on Windows - I think on M

[Numpy-discussion] extension questions: f2py and cython

2009-10-15 Thread Robin
Hi, Sent this last week but checking the archives it appears not to have got through. Hopefully this will work... I am looking at moving some of my code to fortran to use with f2py. To get started I used this simple example: SUBROUTINE bincount (x,c,n,m) IMPLICIT NONE INTEGER, INTENT(I