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

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

[Octave-bug-tracker] [bug #59830] Architecture-dependent results for ari


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #59830] Architecture-dependent results for arithmetic operations involving NA
Date: Thu, 7 Jan 2021 14:52:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Follow-up Comment #5, bug #59830 (project octave):

[comment #4 comment #4:]
> Okay, at least defining an NA value is possible.
> 
> Next step is to isolate the problem and see which mathematical operations
preserve NA and which convert it to NaN.  Just guessing right now, it is more
likely that a hardware accelerated multiplication/division is going to change
things.
> 
> Tests:
> 
> x = NA;
> x + 1
> x - 1
> x * 1
> x / 1

Here we are:


octave:1> x = NA;
octave:2> x + 1
ans = NaN
octave:3> x - 1
ans = NaN
octave:4> x * 1
ans = NaN
octave:5> x / 1
ans = NaN



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59830>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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