[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45680] permute rows or columns
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #45680] permute rows or columns |
Date: |
Tue, 04 Aug 2015 17:52:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 |
Follow-up Comment #3, bug #45680 (project octave):
The documentation is pretty clear that you need to specify the order of all
dimensions of an N-d array. Since for Octave and Matlab arrays are always at
least 2-D the second argument must have a minimum of two entries.
You might check how Matlab handles this. If they have an exception then we
might do it to for Matlab compatibility. The documentation is at
http://www.mathworks.com/help/matlab/ref/permute.html, but doesn't reference
any thing like this.
Also, if I was to introduce an exception, I would think that
permute (A, 1)
would leave the matrix unchanged since it is suggested to put the first
dimension of the original matrix in the first dimension slot in the result
matrix.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45680>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/