[f2py] Outputting unknown size arrays
pearu.peterson at gmail.com
Thu Dec 18 17:19:26 EET 2008
Robert Von Dreele (vondreel) wrote:
> A small point - it is possible to allocate arrays in g77 by calling malloc/free appropriately wrapped for fortran.
Yes, this is a good point. Keeping in mind that for Fortran 90 PRESENT
support f2py may need to pass NULL values to Fortran procedures anyway
and this can be used to allocate memory within the Fortran procedure.
However, this may not solve the current problem because then
there must be a way to return the dimensions of the Fortran allocated
array to f2py interface somehow so that proper NumPy array could be
constructed. I'll add this issue to my TODO list...
More information about the f2py-users