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

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

[Octave-bug-tracker] [bug #36066] number/array fails


From: Kris Thielemans
Subject: [Octave-bug-tracker] [bug #36066] number/array fails
Date: Mon, 02 Apr 2012 13:40:30 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

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

                 Summary:  number/array fails
                 Project: GNU Octave
            Submitted by: krthie
            Submitted on: Mon 02 Apr 2012 13:40:29 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Kris Thielemans
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I've just upgraded to octave 3.6.1 and find that dividing a number by an array
no longer works (it did in 3.4.1):

octave> tmp2=1/ones([3 4 5]);
error: invalid conversion of NDArray to Matrix
octave> tmp2=1/ones([3 4]);
error: operator /: nonconformant arguments (op1 is 1x1, op2 is 3x4)

this does work in matlab though, so my old programs now crash. I wonder if
this is unintended behaviour though as this stuff does work with the other
operators + - *, for instance

octave> tmp2=1*ones([3 4 5]);

(it doesn't work with ^, but neither does it in matlab)


octave> tmp2=1./ones([3 4 5]);

does still work of course.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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