[bug #54144] Why can't issorted() work on sparse matrices?
Andreas Bertsatos <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #3, bug #54144 (group octave):
Using Octave 11, it appears that *issorted* works properly.
octave:26> X = sparse ([1 1], [3 4], [4 3], 1, 8)
X =
Compressed Column Sparse (rows = 1, cols = 8, nnz = 2 [25%])
(1, 3) -> 4
(1, 4) -> 3
octave:27> issorted(X)
ans = 0
octave:28> issorted(sort (X))
ans = 1
octave:29> sort (X)
ans =
Compressed Column Sparse (rows = 1, cols = 8, nnz = 2 [25%])
(1, 7) -> 3
(1, 8) -> 4
So the only problem yet is the function's documentation.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54144>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaZG+8gAKCRCqLAuaBUf3 TlmOAP46pE+kZ7i9ijsuW5LCSef3JB9nqAmZLYlUwtwilzHk0wD/d+unmwOcfyEQ oj0hkV+Y2JqlbLT4fTzov+efiz5QxQk= =mHTb -----END PGP SIGNATURE-----