[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33197] sortrows does not work with single row
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #33197] sortrows does not work with single row arrays |
Date: |
Mon, 02 May 2011 04:44:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16 |
URL:
<http://savannah.gnu.org/bugs/?33197>
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
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: asppsa
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
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:
sortrows([1], 1)
or:
sortrows([1,2,3,4], 1)
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
confusion.
I'm using a pre-compiled Arch Linux GNU Octave package on a 32 bit Intel
computer.
$ 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:
<http://savannah.gnu.org/bugs/?33197>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33197] sortrows does not work with single row arrays,
anonymous <=