Hi Laurent,
On 23 September 2018 at 19:38, Laurent Gautier <
lgau...@gmail.com> wrote:
> It is very possibly an API / design issue on Python side but I thought I'd
> ask here first in case I missed something.
Generally speaking I don't know all the details of the Python
memoryview from the C API, which I know is half available and half
unavailable from Python. This fact makes me believe it is very
broken, but that's another discussion.
Maybe you can do what you want by involving numpy in the mix. I am
also not familiar with numpy, but try something like: create a numpy
array from the buffer, transpose it, and get the resulting array as a
memoryview again. Maybe you can do that in such a way that the
transpose won't actually copy the data. Or maybe you can directly ask
for a Fortran-style memoryview from the original numpy array.
A bientôt,
Armin.