bugGNU Octave - Bugs: bug #47085, automatic broadcasting with zero...

 
 

bug #47085: automatic broadcasting with zero length dimensions

Submitter:  Carnë Draug <carandraug>
Submitted:  Sun 07 Feb 2016 10:43:44 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Feb 2016 03:02:23 PM UTC, comment #3: 

I have finally fixed this on the default branch http://hg.savannah.gnu.org/hgweb/octave/rev/12280fef2741

Carnë Draug <carandraug>
Group Member
Wed 17 Feb 2016 09:39:42 PM UTC, comment #2: 


> This seems related to bug #42832 ?


Indeed, that is the same issue.  The only difference is that got addressed by fixing it on findpeaks while here I'm reporting issue against the source, i.e., automatic broadcasting.

For what is worth, I came across this issue in im2col which I fixed by calling bsxfun directly http://hg.code.sf.net/p/octave/image/rev/0fc684589226

Carnë Draug <carandraug>
Group Member
Wed 17 Feb 2016 08:40:01 PM UTC, comment #1: 

This seems related to bug #42832 ?

ederag <ederag>
Sun 07 Feb 2016 10:43:44 PM UTC, original submission:  

I could swear this had been reported before but I can't find it.  Maybe it was just mentioned on the mailing list.

Automatic broadcast fails when one of the dimensions is zero.  It may sound silly but I kinda like how elegant Octave handles dimensions of length 0.


> bsxfun (@plus, [1 2 3], zeros (0, 3))
ans = [](0x3)
> [1 2 3] .+ zeros (0, 3)
error: operator +: nonconformant arguments (op1 is 1x3, op2 is 0x3)


Carnë Draug <carandraug>
Group Member

 

(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 mtmiller (Updated the item)
  • -email is unavailable- added by ederag (Posted a comment)
  • -email is unavailable- added by carandraug (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
    2016-02-25 carandraug StatusNone Fixed
        Open/ClosedOpen Closed
    2016-02-21 mtmiller CategoryNone Interpreter
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code