[Numpy-discussion] Change default order to Fortran order

Sebastian Berg sebastian at sipsolutions.net
Sun Aug 2 13:19:43 EDT 2015


Well, numpy has a tendency to prefer C order. There is nothing you can do about that really. But you just cannot be sure what you get in some cases. 
Often you need something specific for interfaceing other code. But in that case quite often you also do not need to fear the copy.

- Sebastian 


On Sun Aug 2 16:27:08 2015 GMT+0200, Sturla Molden wrote:
> On 02/08/15 15:55, Kang Wang wrote:
> 
> > Can anyone provide any insight/help?
> 
> There is no "default order". There was before, but now all operators 
> control the order of their return arrays from the order of their input 
> array. The only thing that makes C order "default" is the keyword 
> argument to np.empty, np.ones and np.zeros. Just monkey patch those 
> functions and it should be fine.
> 
> Sturla
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 
>


More information about the NumPy-Discussion mailing list