[Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

Matthew Brett matthew.brett at gmail.com
Thu Apr 4 17:20:41 EDT 2013


On Tue, Apr 2, 2013 at 4:32 AM, Nathaniel Smith <njs at pobox.com> wrote:
> Maybe we should go through and rename "order" to something more descriptive
> in each case, so we'd have
>   a.reshape(..., index_order="C")
>   a.copy(memory_order="F")
> etc.?

I'd like to propose this instead:

a.reshape(..., order="C")

This fits well with the terms we've been using during the discussion.
It reduces the changes to only one of the two meanings.

Thinking about it, I feel that this would have been considerably
clearer to me as I learned numpy.



More information about the NumPy-Discussion mailing list