bugGNU Octave - Bugs: bug #51448, cell2mat doesn't preserve...

 
 

bug #51448: cell2mat doesn't preserve dimensions of empty input

Submitted by:  Olaf Till <i7tiol>
Submitted on:  Wed 12 Jul 2017 07:03:10 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Olaf TillOpen/Closed: Closed
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 13 Jul 2017 04:11:47 AM UTC, comment #1:

I made a few changes, testing for isempty rather than numel == 0, and I added a BIST test for the correct behavior. I checked in the change on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/82886a27ce3a). Thanks for noticing this.

Rik <rik5>
Project Administrator
Wed 12 Jul 2017 07:03:10 AM UTC, original submission:

(Probably affects development branch also.)

'cell2mat' doesn't preserve dimensions of empty input, e.g.
should return
but currently returns

Patch follows as soon as I know the bug number.

Olaf Till <i7tiol>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #41184:  cell2mat-51448.cset added by i7tiol (926B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by i7tiol (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Jul 2017 04:11:47 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 12 Jul 2017 07:08:20 AM UTCi7tiolAttached File-=>Added cell2mat-51448.cset, #41184

    Back to the top


    Powered by Savane 3.1-cleanup1