[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54143] Why can't issorted() work on matrices?
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #54143] Why can't issorted() work on matrices? |
Date: |
Mon, 18 Jun 2018 15:44:18 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
URL:
<http://savannah.gnu.org/bugs/?54143>
Summary: Why can't issorted() work on matrices?
Project: GNU Octave
Submitted by: sebald
Submitted on: Mon 18 Jun 2018 07:44:17 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The sort() function works on matrices, yet the issorted() function doesn't,
e.g.,
octave:7> X = magic(5);
octave:8> sort(X)
ans =
4 5 1 2 3
10 6 7 8 9
11 12 13 14 15
17 18 19 20 16
23 24 25 21 22
octave:9> issorted(sort(X))
error: issorted: needs a vector
One would think that issorted() is a counterpart to sort(), so it should work
on whatever the sorted routine creates.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54143>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54143] Why can't issorted() work on matrices?,
Dan Sebald <=