4 ms·
Likewise! FYI the actual paper is https://ieeexplore.ieee.org/document/8425212 https://ieeexplore.ieee.org/document/8425212 and you can get the PDF here: http:
by antonyme 7y ago
Likewise!
FYI the actual paper is https://ieeexplore.ieee.org/document/8425212 https://ieeexplore.ieee.org/document/8425212 and you can get the PDF here: http://pdinda.org/Papers/ipdps18.pdf http://pdinda.org/Papers/ipdps18.pdf
- ekimekim 7y agoInterestingly, they got one of their own answers wrong. The question is: if a and b are numbers, it is always the case that (a + b) == (b + a) and their notes on it: Is a simple statement involving the commutativity over addition true for floating point? Generally, floating point arithmetic follows the same commutativity laws as real number arithmetic. They make it clear in their notes that "are numbers" includes infinities but not NaNs. Now consider the case where a = inf and b = -inf. Then inf + (-inf) is NaN, and (-inf) + inf is NaN, and NaN != NaN. >>> a = float('inf') >>> b = float('-inf') >>> a + b == b + a False
- piadodjanho 7y agoNice catch. > They make it clear in their notes that "are numbers" includes infinities but not NaNs. This is definitely not very clear on the form, thought.