bugGNU Octave - Bugs: bug #62390, broadcasting fails in script

 
 

bug #62390: broadcasting fails in script

Submitter:  Markus Grabner <grabner>
Submitted:  Sun 01 May 2022 11:32:58 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 May 2022 08:07:39 AM UTC, comment #3: 

Closing as duplicate of bug #38466. If this should be something different, we can re-open this report, or a new one can be created.

Markus Mützel <mmuetzel>
Group administrator
Mon 02 May 2022 07:11:20 AM UTC, comment #2: 

comment #1:

> Related to bug #38466? That bug behaved differently based on OS, platform and GUI vs CLI.

Indeed, this seems to be a duplicate. Since I didn't observe this issue in earlier versions of octave, I didn't search the bug history back more than a couple of years. #38466 is listed with the timestamp of the initial report (2013), so it didn't show up in my search, though there has been some activity recently (including the comment that the issue was fixed).

Thanks & kind regards,
Markus

Markus Grabner <grabner>
Mon 02 May 2022 03:36:39 AM UTC, comment #1: 

Related to bug #38466? That bug behaved differently based on OS, platform and GUI vs CLI.

Arun Giridhar <arungiridhar>
Group Member
Sun 01 May 2022 11:32:58 PM UTC, original submission:  

The attached code fails when executed as a script (i.e., storing the file in the current directory and typing "broadcasting" in the interactive octave shell), reporting the following error:


error: +=: nonconformant arguments (op1 is 2x1x2, op2 is 2x1)
error: called from
    broadcasting at line 3 column 3


However, executing the command

A += B

interactively gives the expected result

A =

ans(:,:,1) =

   2
   2

ans(:,:,2) =

   2
   2


Other operators (e.g., ".*=") are affected by the same issue. I couldn't find any information about broadcasting becoming deprecated anytime soon, but even if it were, different behaviour in scripting and interactive mode is a bug in my opinion.

Kind regards,
Markus

Markus Grabner <grabner>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53167:  broadcasting.m added by grabner (49B - text/x-objcsrc)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by grabner (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
    2022-05-02 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #38466
    2022-05-01 grabner Attached File- Added broadcasting.m, #53167

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code