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

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

[Octave-bug-tracker] [bug #63965] perms.m doesn't do "unique" for cell i


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63965] perms.m doesn't do "unique" for cell inputs
Date: Mon, 27 Mar 2023 05:00:25 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63965>

                 Summary: perms.m doesn't do "unique" for cell inputs
                   Group: GNU Octave
               Submitter: arungiridhar
               Submitted: Mon 27 Mar 2023 05:00:23 AM EDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: arungiridhar
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: stable
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: 8.2.0 (current stable)


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 27 Mar 2023 05:00:23 AM EDT By: Arun Giridhar <arungiridhar>
While reviewing bug #63962 I realized that perms.m does not do unique
correctly for cell arrays. That is,  perms (C, "unique") isn't correct when C
is a cell array. There are also warnings about "rows" and other internal
implementation details.

The workaround is to create a numeric index array for C, replacing the element
with the index, with identical entries having the same index. Then pass that
index to perms and use the result to index back into C. But perms should do
that by itself.

I'll work on it this week.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63965>

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




reply via email to

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