Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Melissa Mendonça
Hello, Sam, sorry for taking so long to answer! The problem seems to be that you are using cf2py depend(in) Y, YP instead of cf2py depend(n) Y, YP <- (note that there was a spurious i in that depend expression) and that the callback FCN needs the dimension n as an argument. I was able to compi

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
Melissa, Thank you for answering my post. I made the changes you recommended and the code compiles successfully. But I do have one question. The arrays being passed in the CALL to FCN were treated as assumed shaped arrays in the called subroutine. Are assumed shaped arrays a problem for f2py?

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Melissa Mendonça
Sure, you can use assume-shape arrays, but if you generate a signature file using $ f2py rkfn78.for -m rkfn78 -h rkfn78.pyf you can see that f2py correctly determines n to be the length of the array Y, but since YP also depends on n, that's what generated the error you saw the first time. If you

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
One more question. Where can I find a documentation on f2py that covers issues like assumed shaped arrays, and issues such as the one discussed in this post? Sam Dupree. On October/19/2020 13:01:13, Melissa Mendonça wrote: Sure, you can use assume-shape arrays, but if you generate a signature

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Melissa Mendonça
The documentation for f2py is not very complete, I'm afraid. I'll try to work on that front in the next few months. For now, you can find it here: https://numpy.org/doc/stable/f2py Cheers, Melissa On Mon, Oct 19, 2020 at 2:35 PM Samuel Dupree wrote: > One more question. Where can I find a docu

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
Melissa, I've tried working with the documentation hosted at https://numpy.org/doc/stable/f2py/ and you're right, it is not very complete ;-). So on that front I wish you the best. Once again, thank you very much for answering my post. All the best. Sam

Re: [Numpy-discussion] [SciPy-Dev] ANN: SciPy 1.5.3

2020-10-19 Thread Warren Weckesser
On 10/17/20, Tyler Reddy wrote: > Hi all, > > On behalf of the SciPy development team I'm pleased to announce > the release of SciPy 1.5.3, which is a bug fix release that includes > Linux ARM64 wheels for the first time. Thanks Tyler! A lot of work goes into a SciPy release, so I'm grateful yo