octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' w


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #38466] incorrect broadcasting for 'a .*= b' when b has fewer dimensions than a
Date: Mon, 04 Mar 2013 22:34:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1

Follow-up Comment #2, bug #38466 (project octave):

Actually, wait. I remember now. I deliberately did it this way, thinking that
a .*= b shouldn't change a's size, thinking that broadcasting this way should
work in-place without allocating temporaries or more memory. In particular,
since it must be in-place, it can't change size(a).

But jwe thinks that a .*= b should be syntactic sugar for a = a .* b and
shouldn't attempt to do any sort of tricks like this. At the moment, there is
some code, not a lot, that actually attempts to be more efficient with the a
OP= b operations than a = a OP b. What do you think should happen?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38466>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]