[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' w
From: |
John Hunt |
Subject: |
[Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' when b has fewer dimensions than a |
Date: |
Mon, 04 Mar 2013 21:14:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 |
URL:
<http://savannah.gnu.org/bugs/?38466>
Summary: incorrect broadcasting for 'a .*= b' when b has
fewer dimensions than a
Project: GNU Octave
Submitted by: huntj
Submitted on: Mon 04 Mar 2013 09:14:16 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
line 3 should broadcast, as on the next line.
octave:1> a = ones(2, 2, 2);
octave:2> b = ones(2, 1);
octave:3> a .*= b
error: .*=: nonconformant arguments (op1 is 2x2x2, op2 is 2x1)
octave:3> a = a .* b
warning: product: automatic broadcasting operation applied
a =
ans(:,:,1) =
1 1
1 1
ans(:,:,2) =
1 1
1 1
hg id -in
8366bc871d45 16188
It might be related to bug #35787
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38466>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' when b has fewer dimensions than a,
John Hunt <=