[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32533] Different operator preference than Mat
From: |
Patrick Häcker |
Subject: |
[Octave-bug-tracker] [bug #32533] Different operator preference than Matlab |
Date: |
Fri, 18 Feb 2011 13:58:07 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/4.4; de) KHTML/4.4.5 (like Gecko) |
URL:
<http://savannah.gnu.org/bugs/?32533>
Summary: Different operator preference than Matlab
Project: GNU Octave
Submitted by: magicmuscleman
Submitted on: Fr 18 Feb 2011 13:58:07 GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Matlab evaluates the element-wise square and the transpose with equal
importance and thus from left to right:
>> size(ones(1,3).^2.')
ans =
3 1
>> size(ones(1,3).'.^2)
ans =
3 1
Octave evaluates the transpose first and then the element-wise square and thus
transposes the scalar exponent:
octave:1> size(ones(1,3).^2.')
ans =
1 3
octave:2> size(ones(1,3).'.^2)
ans =
3 1
I don't know which definition is superior, but I would opt for compatibility.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32533>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #32533] Different operator preference than Matlab,
Patrick Häcker <=