[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45389] nd-array indexing with fewer subscript
From: |
Amro |
Subject: |
[Octave-bug-tracker] [bug #45389] nd-array indexing with fewer subscripts than dimensions |
Date: |
Sat, 25 Jul 2015 03:13:02 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 |
Follow-up Comment #5, bug #45389 (project octave):
Thanks Nick for the clearer explanation.
I have discussed this in a MATLAB/Octave chat room, and someone pointed out
that the reshaping behavior was mentioned a few years ago in an official blog
post:
http://blogs.mathworks.com/loren/2006/08/09/essence-of-indexing/
See the the bullet point "Indexing with fewer indices than dimensions".
Unfortunately only the RHS case was considered, and no mention of what the
expected outcome is for LHS expressions, especially when growing the array...
Another post where this was shown:
http://blogs.mathworks.com/loren/2006/11/10/all-about-the-colon-operator/#6
(see the section "Collapsing Trailing Dimensions").
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45389>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/