[Rcpp-devel] NA_REAL in RcppParallel

Dirk Eddelbuettel edd at debian.org
Thu Jun 2 18:03:57 CEST 2016


For the particular case of 'not finite' on floats I also found that I could
resort to the standard NaN which IEEE arithmetic supports.  Of course, this
will then be a NaN in R and not a NA where you might want the latter.  But at
least it stays cleanly away from R which may help in the multithreaded
contexts.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list