bugGNU Octave - Bugs: bug #52432, perms: empty arrays do not return...

 
 

bug #52432: perms: empty arrays do not return same class

Submitter:  Carnë Draug <carandraug>
Submitted:  Fri 17 Nov 2017 04:51:31 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Nov 2017 04:56:26 PM UTC, comment #1: 

This is fixed with http://hg.savannah.gnu.org/hgweb/octave/rev/94c4ebecca6e

Part of the tests still fail because bug #52431 remains unfixed.

Carnë Draug <carandraug>
Group Member
Fri 17 Nov 2017 04:51:31 PM UTC, original submission:  

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.

Carnë Draug <carandraug>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-17 carandraug StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code