[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65527] sort should produce an error for nonsc
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim |
Date: |
Fri, 29 Mar 2024 08:42:25 -0400 (EDT) |
Follow-up Comment #6, bug #65527 (group octave):
sortrows is a separate function with a separate purpose where a vecdim makes
sense.
rather than catch with an error, you could define an octave extension over
what matlab does that creates a meaning for a vector-dimension, perhaps as
suggested by @Anon in comment #5, but you'd need to ensure not breaking
compatibility with any intended functionality including all sort options.
I don't see any particular optimization that would occur by specifying sort
that way, when it would just be a recursive call to sort and a
programmatically clear means of achieving the same is what's written in the
last comment. That can be used with the regular dim argument to make
algorithmically flexible sort dimensions.
For now I'm going to keep this report focused on a need to catch and produce a
sensible error for incorrect input to sort.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65527>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65527] Missing documentation for sort, anonymous, 2024/03/28
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Nicholas Jankowski, 2024/03/28
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, anonymous, 2024/03/28
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Nicholas Jankowski, 2024/03/28
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, anonymous, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, anonymous, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Arun Giridhar, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Arun Giridhar, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Arun Giridhar, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Rik, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Nicholas Jankowski, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Nicholas Jankowski, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Rik, 2024/03/29
- [Octave-bug-tracker] [bug #65527] sort should produce an error for nonscalar dim, Nicholas Jankowski, 2024/03/31