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

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

[Octave-bug-tracker] [bug #34441] Weird bug with vector subtraction


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #34441] Weird bug with vector subtraction
Date: Fri, 30 Sep 2011 18:55:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Forestfrog/3.6.13

Update of bug #34441 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

It's not a bug. It's a feature I implemented recently. It's equivalent to 

bsxfun(@minus, [1 2 3], [1 2 3]')

except I haven't really documented it yet. I'm writing a chapter for the
manual documenting thihs and other vectorisation features.

My inspiration is that this is turned on by default in numpy, and it's a very
useful thing, plus it doesn't break Matlab backwards compatibility. Matlab
code will still work unless you're counting on v - v' to error out in Matlab
code. Here is the numpy document that inspired me to do this:

http://www.scipy.org/EricsBroadcastingDoc

Given this, do you really think automatic binary singleton expansion is a bad
idea? It seems to work well in numpy.

I'm closing this as "not a bug", but if you think this is a bad idea, please
explain why.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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