[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operati
From: |
Daniel Kraft |
Subject: |
[Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA |
Date: |
Fri, 22 Nov 2013 15:36:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131030 Firefox/17.0 Iceweasel/17.0.10 |
Follow-up Comment #5, bug #40668 (project octave):
As I understand it, doesn't IEEE 754 allow for distinct (quiet) NaN values, of
which NA is a particular one? Those values should be propagated through all
computations, so as long as you don't perform operations between NA and NaN
but only between NA and ordinary numbers, NA should be preserved (also for
external codes that "just" do calculations with the numbers passed in).
The sign bit is a bit different from the NaN payload bits, and thus seemingly
the unary minus flips the sign bit even though the payload itself stays the
same as it should. Based on this interpretation, it makes sense to me to
ignore the sign bit when checking for NA. However, I understand that it is
probably best not to rely on this behaviour in one's code (and I have changed
mine already accordingly).
Are there possible problems that can be introduced by modifying
__lo_ieee_is_NA() accordingly?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40668>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Daniel Kraft, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Daniel Kraft, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Daniel Kraft, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Mike Miller, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Mike Miller, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, John W. Eaton, 2013/11/22
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA,
Daniel Kraft <=
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, Jordi GutiƩrrez Hermoso, 2013/11/24
- [Octave-bug-tracker] [bug #40668] -NA is inconsistent with other operations on NA, John W. Eaton, 2013/11/24