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

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

[Octave-bug-tracker] [bug #51143] Overflow result with mixed precision t


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51143] Overflow result with mixed precision types
Date: Tue, 30 May 2017 11:08:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, bug #51143 (project octave):

Yes, for mixed single/double operations is both operands are converted to
single.  I thought that was compatible behavior.  If instead the computation
is performed in double and then the result is converted to single, then we
should probably define mixed-type operators and eliminate the "demotion"
functions that are currently  defined.  It should not be too hard with
templates, but some care will be needed to ensure that all cases are covered
consistently.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51143>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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