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

2023-03-23 Thread monte . b . hoover
Would it be okay to add an argument to ctypeslib.as_array() that allowed specifying that a pointer references column-major memory layout? Currently if we use ndarray.ctypes.data_as() to get a pointer to a Fortran-ordered array and then we use ctypeslib.as_array() to read that same array back i

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

2023-03-28 Thread monte . b . hoover
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 s

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

2023-04-06 Thread monte . b . hoover
Hi Rob, Thanks for that. I'll take a look and let you know. -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