bugGNU Octave - Bugs: bug #41633, postpad and prepad fail when...

 
 

bug #41633: postpad and prepad fail when padding singleton dimensions

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Tue 18 Feb 2014 06:27:26 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 21 Feb 2014 11:14:45 PM UTC, comment #2:

I've pushed this fix to gui-release since it's fairly simple. The full test suite passes, looks okay to me.

http://hg.savannah.gnu.org/hgweb/octave/rev/d28c4c4547ef

Mike Miller <mtmiller>
Project Administrator
Fri 21 Feb 2014 05:15:12 AM UTC, comment #1:

I've got a patch for this, attached. As far as I can tell this doesn't break existing functionality at all, only allows arguments that would have been errors previously. So I think this could go on the gui-release branch for 4.0.

Also, workaround is to use cat directly which does allow dimensions larger than current. For your example,

gives the padding you're looking for.

(file #30628)

Mike Miller <mtmiller>
Project Administrator
Tue 18 Feb 2014 06:27:26 PM UTC, original submission:

Example:

I would expect this to expand to the 3rd dimension to length 3.

Carnë Draug <carandraug>
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 #30628:  bug41633.diff added by mtmiller (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by carandraug (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Feb 2014 11:14:45 PM UTCmtmillerStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Fri 21 Feb 2014 05:15:12 AM UTCmtmillerAttached File-=>Added bug41633.diff, #30628
      CategoryNone=>Octave Function
      StatusNone=>Patch Submitted
      Summarypostpad fails when padding singleton dimensions=>postpad and prepad fail when padding singleton dimensions

    Back to the top


    Powered by Savane 3.1-cleanup1