Hi Monte, I did send an email around a few weeks also on this https://mail.python.org/archives/list/[email protected]/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, <[email protected]> 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 -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: [email protected] >
_______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: [email protected]
