[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 W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' when b has fewer dimensions than a |
Date: |
Tue, 05 Mar 2013 02:05:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11 |
Follow-up Comment #4, bug #38466 (project octave):
In Octave, all "A op= B" operators are just syntactic sugar for "A = A op B",
so some can change the size of A:
octave:1> A = [1,2,3;4,5,6];
octave:2> B = [1,2;3,4;5,6];
octave:3> A *= B
A =
22 28
49 64
That's the expected result and makes sense given the simple rule that A op= B
is exactly the same as A = A op B.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38466>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/