bugGNU Octave - Bugs: bug #33340, subsasgn doesn't always remove...

 
 

bug #33340: subsasgn doesn't always remove trailing singleton dimensions

Submitter:  Helios De Rosario <heliosdr>
Submitted:  Wed 18 May 2011 03:34:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Helios De Rosario Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 May 2011 05:42:02 PM UTC, comment #1: 

This problem appears to be fixed in 3.4.0, so I'm closing this report.

John W. Eaton <jwe>
Group administrator
Wed 18 May 2011 03:34:38 PM UTC, original submission:  

Yet another quirk related to traling singleton dimensions. The subsasgn method does not handle them consistently:


octave-3.2.4:1> x=ones(2)
x =

   1   1
   1   1

octave-3.2.4:2> size(x)
ans =

   2   2

octave-3.2.4:3> y=x(:,:,1)
y =

   1   1
   1   1

octave-3.2.4:4> size(z)
ans =

   2   2


That's ok. But then:


octave-3.2.4:5> z=x(:,:,:)
z =

   1   1
   1   1



octave-3.2.4:6> size(z)
ans =

   2   2   1


This last operation should return the same as the previous one, I think.

Helios De Rosario <heliosdr>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by heliosdr (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
    2011-05-18 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code