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

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

[Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator o


From: anonymous
Subject: [Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator over transpose operator
Date: Thu, 20 Sep 2018 10:35:26 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:51.0) Gecko/20100101 Firefox/51.0

URL:
  <https://savannah.gnu.org/bugs/?54698>

                 Summary: Precedence of call/indexing operator over transpose
operator
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 20 Sep 2018 02:35:25 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: rahnema1
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

According to the documentation
<https://octave.org/doc/v4.4.0/Operator-Precedence.html> the call operator
takes precedence over transpose/ctranspose operators so considering the
following piece of code 


a = [1 2; 3 4];
disp(a'(2))
disp(a.'(2))


Because of higher precedence of the indexing operator it should behave as :


temp = a(2);
disp(temp')


and it should show 3 but it currently behaves as:


temp = a';
disp(temp(2))


that displays the wrong result of 2.
In other words *a'(2)* and *a(2)'* should produce the same result.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54698>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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