[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54144] Why can't issorted() work on sparse ma
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #54144] Why can't issorted() work on sparse matrices? |
Date: |
Mon, 18 Jun 2018 15:49:27 -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/?54144>
Summary: Why can't issorted() work on sparse matrices?
Project: GNU Octave
Submitted by: sebald
Submitted on: Mon 18 Jun 2018 07:49:25 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The issorted() documentation states
This function does not support sparse matrices.
yet sort() works on sparse matrices:
octave:10> I = [1 1 2]; J = [1 1 2]; SV = [3 4 5];
octave:11> X = sparse (I, J, SV, 3, 4, "unique")
X =
Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%])
(1, 1) -> 4
(2, 2) -> 5
octave:12> sort(X)
ans =
Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%])
(3, 1) -> 4
(3, 2) -> 5
octave:13> issorted(sort(X))
error: issorted: needs a vector
As with the previous bug report, issorted() should be able to work on anything
that the sort() routine produces.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54144>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54144] Why can't issorted() work on sparse matrices?,
Dan Sebald <=