Hi Monte,

I did send an email around a few weeks also on this
https://mail.python.org/archives/list/numpy-discussion@python.org/message/R6OARH7GJ3XPRFZC55XGYDW4S4GZXA5H/
and have a working example at
https://github.com/rjfarmer/numpy/tree/ctypelibs_as_array_flags but haven't
gotten around to submitting as a pr yet.

Maybe you could test out my suggestion and see if it does what you need?

Rob

On Tue, 28 Mar 2023 at 15:33, <monte.b.hoo...@gmail.com> wrote:

> Eric,
>
> Thanks for the reply. My use case is using ctypes as an interface between
> Numpy and Fortran in cases where I can't/don't want to use f2py.  It's easy
> enough for me to put a wrapper around ctypeslib.as_array() so that I can
> read in multidimensional Fortran arrays correctly (I reverse the shape
> dimensions and transpose), but I just thought adding explicit Fortran
> support as an argument would add to the API. I'm happy to contribute a pull
> request if you think it's a worthwhile add.
>
> Best,
> Monte
> _______________________________________________
> NumPy-Discussion mailing list -- numpy-discussion@python.org
> To unsubscribe send an email to numpy-discussion-le...@python.org
> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> Member address: robert.j.farme...@gmail.com
>
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to