|
From: | John W. Eaton |
Subject: | Re: Single/Double precision equality |
Date: | Tue, 30 Sep 2014 15:59:09 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
On 09/27/2014 01:58 PM, Rik wrote:
I think the limitation comes from Matlab compatibility. I don't believe they support mixed integer operations, just mixed integer/float operations. Could someone with access to matlab test uint8(3) + uint16(3) and see if it produces an error? I suppose Octave could allow these kind of operations as long as the priorities were worked out. For example, which class would the result of uint8 + int8 be stored in? And similarly for uint8 + uint16?
We could allow mixed operations, but that's a lot of additional functions to deal with. I'd only want to do it if we have a way to generate the code automatically from some simple set of rules, otherwise I think we are asking for a maintenance headache in exchange for very little gain in real functionality.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |