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

 
 

bug #40221: Padarray doesn't accept zero padding

Submitter:  None
Submitted:  Wed 09 Oct 2013 05:28:46 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  carandraug
Originator Name:  Cristian Toraci Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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.


octave> padarray (magic(3), [0 1])
ans =

   0   8   1   6   0
   0   3   5   7   0
   0   4   9   2   0


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

Carnë Draug <carandraug>
Group Member
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 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 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
    2013-10-23 carandraug Open/ClosedOpen Closed
    2013-10-16 carandraug StatusNeed Info Invalid / Not an Octave Bug
    2013-10-10 carandraug StatusNone Need Info
        Assigned toNone carandraug

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code