[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
Hi,
On Tue, Apr 2, 2013 at 4:32 AM, Nathaniel Smith <njs at pobox.com> wrote:
<snip>
> 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")
a.copy(layout="F")
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.
Cheers,
Matthew
More information about the NumPy-Discussion
mailing list