[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47063] computation between single and double
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #47063] computation between single and double performed with single precision |
Date: |
Fri, 18 Mar 2016 14:25:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0 |
Follow-up Comment #3, bug #47063 (project octave):
You are on the right track, but "demotion" means to reduce the rank of
something, so that seems like the wrong word for a function that promotes
float to double. It also makes no sense to have a demotion or promotion
function that just makes a new value of the same type. Instead, if we are
going to promote singles to doubles, we should remove the function that used
to demote doubles to singles and add a promotion function for singles to
doubles. And rename all of them, if we only need to do promotion. And you
need to do it for matrix types as well, not just scalars.
But I'm still not sure this is a good idea. I'm not sure we should follow
Matlab in this case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47063>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/