bugGNU Octave - Bugs: bug #40221, Padarray doesn't accept zero...

 
 

bug #40221: Padarray doesn't accept zero padding

Submitted by:  None
Submitted on:  Wed 09 Oct 2013 05:28:46 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: InvalidAssigned to: Carnë Draug <carandraug>
Originator Name: Cristian ToraciOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 16 Oct 2013 04:03:59 PM UTC, comment #2:

I received confirmation from the OP via private email that this is indeed not a bug, and the problem originated from other part on its own code.

Still, I changed the documentation to reflect this (and pretty much ended rewriting the whole function to fix or improve other things).

Carnë Draug <carandraug>
Project MemberIn charge of this item.
Thu 10 Oct 2013 03:25:44 PM UTC, comment #1:

Is this actually a problem? I think it's just the documentation that is incorrect, I tried to use a padval of zero and worked fine.

Is this failing for you? What version of Octave and image package do you have?

Carnë Draug <carandraug>
Project MemberIn charge of this item.
Wed 09 Oct 2013 05:28:46 PM UTC, original submission:

According to documentation:

B = padarray(A,padsize) pads an array A with zeros, where PADSIZE
defines the amount of padding to add in each dimension (it must be a vector of positive integers).

in Matlab padarray allows for non-negative integers in PADSIZE. Besides compatibility, having zero values in PADSIZE is useful for padding the array just in some dimension, like adding a given number of columns to a matrix without changing the number of rows.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Oct 2013 09:15:06 PM UTCcarandraugOpen/ClosedOpen=>Closed
    Wed 16 Oct 2013 04:03:59 PM UTCcarandraugStatusNeed Info=>Invalid
    Thu 10 Oct 2013 03:25:44 PM UTCcarandraugStatusNone=>Need Info
      Assigned toNone=>carandraug

    Back to the top


    Powered by Savane 3.1-cleanup1