Skip to content
Prev 207182 / 398503 Next

Optimizing C code

Christophe Genolini wrote:
As Romain said, the test is for NaN as well as NA.  One way it could 
happen is if both x[i] and y[i] were infinite:  then the difference is NaN:

 > Inf - Inf
[1] NaN

Duncan Murdoch