[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33197] sortrows does not work with single row
[Octave-bug-tracker] [bug #33197] sortrows does not work with single row arrays
Mon, 02 May 2011 04:44:23 +0000
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
Summary: sortrows does not work with single row arrays
Project: GNU Octave
Submitted by: None
Submitted on: Mon 02 May 2011 04:44:22 AM UTC
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Assigned to: None
Originator Name: asppsa
Originator Email: address@hidden
Discussion Lock: Any
Operating System: GNU/Linux
I have encountered a problem with the sortrows function, in that it doesn't
seem to be able to deal with arrays with only one row.
To reproduce my problem, try the following:
On my machine, the return is a 0xn matrix, where n is the number of columns in
the input matrix. So, the row has disappeared, whereas I would have expected
it to return the row unaltered.
Running sortrows on matrices with two or more rows seems to work as expected.
This isn't a big issue for me as it is easy enough to wrap calls to sortrows
in an "if" statement, but I thought it might cause compatibility issues and/or
I'm using a pre-compiled Arch Linux GNU Octave package on a 32 bit Intel
$ octave -v
GNU Octave, version 3.4.0
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Octave was configured for "i686-pc-linux-gnu".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
If you need any more information from me, please let me know.
Reply to this item at:
Message sent via/by Savannah
- [Octave-bug-tracker] [bug #33197] sortrows does not work with single row arrays,