help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shiftdim.m documentation vs. reality


From: John W. Eaton
Subject: shiftdim.m documentation vs. reality
Date: Tue, 15 Nov 2005 20:08:19 -0500

On 15-Nov-2005, Joshua Rigler wrote:

| The documentation in 2.1.71 says that a negative integer argument to
| shiftdim.m will move dimensions to the left, cycling the 1st dimension
| to the end.  A positive integer argument will shift all dimensions to
| the right, and add a singleton first dimension.  This seems to be the
| opposite of what I observe,

I think the doc string has it backwards and the code is correct.  I
fixed the doc string in CVS.

Also, there should be no error for things like

  shiftdim (ones (2, 10), 10);

but I think this fails in 2.1.17.  It is fixed in 2.1.72 and 2.9.4.

Thanks,

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]