bugGNU Octave - Bugs: bug #49204, addition of two dissimilar vectors

 
 

bug #49204: addition of two dissimilar vectors

Submitted by:  None
Submitted on:  Wed 28 Sep 2016 06:23:24 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 28 Sep 2016 06:28:11 AM UTC, comment #1:

This is a new feature called broadcasting:

https://www.gnu.org/software/octave/doc/v4.0.3/Broadcasting.html

Dmitri A. Sergatskov <dasergatskov>
Wed 28 Sep 2016 06:23:24 AM UTC, original submission:

Following problems in a book (GNU Octave Packt Publishing) I added two dissimilar vectors b = [1 2 3] and c=[1;2;3]: A 1x3 vector and the other a 3x1 vector. Since I tend to react too quickly I questioned that I understood what I was looking at, but regardless Octave gave me a 3x3 vector:

2 3 4
3 4 5
4 5 6
The Book said that I should have seen an error, not a matrix! But assuming I might be doing something wrong I tried it out in scilab and I got the error. I went back to my linear algebra book and it said that I cannot add a 1x3 to a 3x1, and I looked it up on the internet and it too said that.

But I wondered how in the world can a major piece of code be wrong on such a basic operation. This kind of a problem is covered on the first day of linear algebra 101.

Am I doing something wrong or is there a bug in Octave?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Sep 2016 06:36:32 AM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1