|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #32533] Operator precedence for transpose incorrect |
Date: | Thu, 21 Apr 2011 19:14:53 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16 |
Follow-up Comment #17, bug #32533 (project octave): I re-wrote the parser tests in test_parser.m to conform to the new precedence hierarchy. I'm attaching a diff to this bug report which is your parser changes + my test code. There are a few failing tests that need addressing. 1) exponent and transpose (the original reporter's issue) is back again. These two operators are at the same level of precedence and should evaluate from left-to-right. assert ([2 3].^2.', [4;9]) 2) postfix operator and Hermitian conjugate don't work together. Ordinary transpose does (a--.') a = [3 5]; assert (a--', [3; 5]) (file #23284) _______________________________________________________ Additional Item Attachment: File name: diff5.txt Size:18 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?32533> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |