Re: [Numpy-discussion] calling C function from Python via f2py

2010-05-25 Thread Matt Fearon
ython for this purpose. > >   Nadav > > -Original Message- > From: numpy-discussion-boun...@scipy.org on behalf of Matt Fearon > Sent: Mon 24-May-10 15:43 > To: Discussion of Numerical Python > Subject: Re: [Numpy-discussion] calling C function from Python via f2py >

Re: [Numpy-discussion] calling C function from Python via f2py

2010-05-24 Thread Nadav Horesh
43 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] calling C function from Python via f2py Nadav, Thank you. I believe it is working now, as the pos(2) error is gone. However, though the error is gone, my return variable from the C function is not being updated as if the C code i

Re: [Numpy-discussion] calling C function from Python via f2py

2010-05-24 Thread Matt Fearon
-Original Message- > From: numpy-discussion-boun...@scipy.org on behalf of Matt Fearon > Sent: Fri 21-May-10 21:55 > To: numpy-discussion@scipy.org > Subject: [Numpy-discussion] calling C function from Python via f2py > > Hello, > > I am trying to use f2py to generate a wrapped

Re: [Numpy-discussion] calling C function from Python via f2py

2010-05-22 Thread Nadav Horesh
-discussion] calling C function from Python via f2py Hello, I am trying to use f2py to generate a wrapped C function that I can call from Python (passing arguments to and from). I have this almost working, but I receive trouble with "exp and pow" related to C and some "pos (2) error&

[Numpy-discussion] calling C function from Python via f2py

2010-05-21 Thread Matt Fearon
Hello, I am trying to use f2py to generate a wrapped C function that I can call from Python (passing arguments to and from). I have this almost working, but I receive trouble with "exp and pow" related to C and some "pos (2) error" with one of my passed variables. My f2py syntax is: f2py -c -lm F