[Numpy-discussion] ENH: add dtype and order to np.ctypeslib.as_array

2023-03-13 Thread Rob Farmer
Hi, First-time contribution so I wanted to check in before pushing a PR. I'd like to add an 'order' and 'dtype' flags to np.ctypeslib.as_array. The order flag is for setting things as a Fortran array order while dtype is needed if all you have is a c_void_p (rather than a ctype array). I have a w

[Numpy-discussion] Re: Fortran-style support in ctypeslib.as_array()?

2023-03-28 Thread Rob Farmer
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 submi