[Numpy-discussion] About Reshape()

andrea_gavana at tin.it andrea_gavana at tin.it
Fri May 13 14:23:05 EDT 2005


Hello Stephen,

>Not necessarily obvious, but you've hit the old problem that MATLAB 
>stores arrays in column major order (first index varies most rapidly, 
>borrowed from Fortran), while Numeric and numarray store arrays in row

>major order (borrowed from C).  

Yes, I have seen the difference ;-)

>The only way to avoid the transpose() 
>calls is to rework your algorithms to work on arrays stored in row major
>
>order.

Yes, this is what I have done. It took some work because I still have my
mind highly-badly conditioned by Matlab syntaxes, but it can be done.

Thanks for your comments.

Andrea.





More information about the NumPy-Discussion mailing list