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

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

[Octave-bug-tracker] [bug #52431] perms fails for cell arrays and struct


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #52431] perms fails for cell arrays and structs
Date: Fri, 17 Nov 2017 12:45:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #2, bug #52431 (project octave):

For non-numeric objects, could we just use something like


v(perms (1:numel(v))


Proposed patch attached.

I also split the new tests into individual assertions to make debugging
easier.

(file #42416)
    _______________________________________________________

Additional Item Attachment:

File name: diffs.txt                      Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52431>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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