bugGNU Octave - Bugs: bug #29630, reshape of logical scalar return...

 
 

bug #29630: reshape of logical scalar return double value

Submitter:  None
Submitted:  Wed 21 Apr 2010 04:07:29 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  highegg
Originator Name:  Alois Schlögl Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 23 Apr 2010 09:44:08 AM UTC, comment #1: 
Jaroslav Hajek <highegg>
Wed 21 Apr 2010 04:07:29 PM UTC, original submission:  



Reshaping a logical scalar returns a double value.

This causes strange effects when A is in general a logical matrix, but can degrade to a matrix of size 1x1.

The issue can reproduced by

   A=logical(1);
   class(reshape(A,[1,numel(A)]))

ans = double

The answer is incorrect as one would expect

ans = logical


Alois  

Anonymous

 

(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 highegg (Updated the item)
  • -email is unavailable- added by None (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-23 highegg StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2010-04-23 highegg StatusNone Confirmed
        Assigned toNone highegg

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code