octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #10440] Allow unique to process cellstr ar


From: Andreas Bertsatos
Subject: [Octave-patch-tracker] [patch #10440] Allow unique to process cellstr arrays with the 'rows' option
Date: Sat, 16 Mar 2024 21:48:11 -0400 (EDT)

URL:
  <https://savannah.gnu.org/patch/?10440>

                 Summary: Allow unique to process cellstr arrays with the
'rows' option
                   Group: GNU Octave
               Submitter: pr0m1th3as
               Submitted: Sun 17 Mar 2024 01:48:11 AM UTC
                Category: Core : new feature
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 17 Mar 2024 01:48:11 AM UTC By: Andreas Bertsatos <pr0m1th3as>
I have modified the unique function to handle cellstr arrays with the rows
option. The modified function (see attachment) includes two extra BISTs for
the new functionality and a minor adjustment in the documentation regarding
the “rows” option. I have attached a patch file 'unique.diff'.

This is an Octave extension, since MATLAB does not support this functionality.
Another issue about MATLAB's unique implementation is that it does not allow a
combination of 'sorted'/'stable' and 'first'/'last' options. Octave behaves
the same. As a result, if we opt for 'first'/'last', these are always computed
with 'sorted' by default, which is a bit annoying since there are cases that
some extra flexibility would be very useful. Are we interested in obtaining
this extra functionality? If so, I could work on this and submit another
patch.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Name: unique.diff  Size: 2KiB
<http://savannah.gnu.org/patch/download.php?file_id=55848>

    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-cf05868ce827c9612cb6083f86556077b7ab06b3.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10440>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]