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 15:19:16 -0400 (EDT)

Follow-up Comment #3, bug #63965 (project octave):


octave:1> perms ({"foo", "b", "b"}, "unique")
warning: unique: "rows" is ignored for cell arrays
warning: called from
    unique at line 135 column 7
    perms at line 114 column 9

ans =
{
  [1,1] = b
  [2,1] = foo
}



octave:2> unique (perms ({"foo", "b", "b"}), "rows")
warning: unique: "rows" is ignored for cell arrays
warning: called from
    unique at line 135 column 7

ans =
{
  [1,1] = b
  [2,1] = foo
}


The patch attached in comment #1 works for small inputs by exhaustive checks
but a better solution is needed, one that can accommodate large inputs as
well.


    _______________________________________________________

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]