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

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

[Octave-bug-tracker] [bug #45761] Invalid addition of vectors/matrices w


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #45761] Invalid addition of vectors/matrices with incorrect sizes
Date: Sat, 15 Aug 2015 00:32:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

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

Admins, Please re-open this bug.  I was going to file a similar one.

Since 4.0.0, the "Octave:broadcast" warning has been merged into the
"Octave:language-extension" warning.  It is impossible to issue warnings for
broadcast without issuing them for legitimate language extensions (i.e.,
changes in the set of syntactically correct files).

Automatic broadcasting only provides syntactic sugar over using bsxfun, but
makes debugging much harder.  For example, I frequently deal with lists of
numbers.  I don't care if they are row vectors or column vectors.  Most matlab
functions don't care, so I don't.  However, when I add a column to a row, I
silently get a matrix, which causes an error to appear in an unrelated line of
code, possibly very much later.

The patch to restore the warning is trivial, but I assume it was a policy
decision.  How can I challenge that decision?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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