[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62390] broadcasting fails in script
From: |
Markus Grabner |
Subject: |
[Octave-bug-tracker] [bug #62390] broadcasting fails in script |
Date: |
Sun, 1 May 2022 19:33:00 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62390>
Summary: broadcasting fails in script
Project: GNU Octave
Submitted by: grabner
Submitted on: Sun 01 May 2022 11:32:58 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.1.0
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
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
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 01 May 2022 11:32:58 PM UTC Name: broadcasting.m Size: 49B By:
grabner
<http://savannah.gnu.org/bugs/download.php?file_id=53167>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62390>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62390] broadcasting fails in script,
Markus Grabner <=