[Numpy-discussion] buggy fortran array reshape ?

Pauli Virtanen pav@iki...
Wed Apr 22 13:39:16 CDT 2009

Wed, 22 Apr 2009 13:51:45 -0400, josef.pktd wrote:
> change your line to
> b = a.reshape((6,), order=order)
> then the reshaped array is just a view.

This has the effect that the unravelling is done in Fortran order (when 
order='F') rather than C-order, which can be confusing at times.

Pauli Virtanen

More information about the Numpy-discussion mailing list