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: anonymous
Subject: [Octave-bug-tracker] [bug #45761] Invalid addition of vectors/matrices with incorrect sizes
Date: Fri, 14 Aug 2015 14:49:47 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0

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

                 Summary: Invalid addition of vectors/matrices with incorrect
sizes
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 14 Aug 2015 02:49:46 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: F. Arnold
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Addition of vectors with vectors and vectors with matrices with different
dimensions should throw an error, but instead returns invalid results. 
Example:

>> b=[1 2 3]; c=[1;2;3]; A=[1 2 3; 4 5 6];
>> b+c
ans =

   2   3   4
   3   4   5
   4   5   6

>> b+A
ans =

   2   4   6
   5   7   9






    _______________________________________________________

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]