[Numpy-discussion] Switching default order to column-major

2023-11-11 Thread Valerio De Benedetto
Hi, I found that the documented default row-major order is enforced throughout 
the library with a series of `order='C'` default parameters, so given this I 
supposed there's no way to change the default (or am I wrong?)
If, supposedly, I'd change that by patching the library (substituting 'C's for 
'F's), do you think there would by any problem with other downstream libraries 
using numpy in my project? Do you think they assume a default-constructed array 
is always row-major and access the underlying data?
___
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


[Numpy-discussion] Re: Switching default order to column-major

2023-11-16 Thread Valerio De Benedetto
Thanks to everyone for your answers. I guess the conclusion is that 
changing the default ordering will do more harm than good.

So, considering the C API, what do you advise to use to copy a 
(probably) row-major ndarray into a data structure that is always 
column-major? Like some kind of iterator that will jump across strides 
in the source array in the fastest way possible?


___
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


[Numpy-discussion] Re: Switching default order to column-major

2023-11-16 Thread Valerio De Benedetto
Thanks to everyone for your answers. I guess the conclusion is that 
changing the default ordering will do more harm than good.

So, considering the C API, what do you advise to use to copy a 
(probably) row-major ndarray into a data structure that is always 
column-major? Like some kind of iterator that will jump across strides 
in the source array in the fastest way possible?
___
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