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

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

[Octave-bug-tracker] [bug #52432] perms: empty arrays do not return same


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #52432] perms: empty arrays do not return same class
Date: Fri, 17 Nov 2017 11:51:33 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?52432>

                 Summary: perms: empty arrays do not return same class
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Fri 17 Nov 2017 04:51:31 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The recent rewrite of perms, due to bug #50426, no longer respects the
original type of input data when the array is empty.


octave-gui:1> aa = perms (single([]))
aa = [](0x0)
octave-gui:2> class (aa) # should be single
ans = double


In addition, while testing it in Matlab, the return size must be 1x0 instead
of 0x0.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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