Skip to content
Prev 9474 / 10988 Next

[Rcpp-devel] Rcpp ISNAN slower than C ISNAN?

Moving the call outside the main loop would be effective for some 
scenarios (i.e, the scenarios where the data objects do not contain 
NaNs). However, once they do we still want to compute a distance based 
on the values and "correct" for the NaNs in some way, so skipping the 
entire object is not really an option. Including a switch between the 
cases of objects with and objects without NaNs is probably something 
worthwhile (that and using more rcpp-sugar).

Nevertheless, the question still remains why the rcpp isNaN call is so 
much slower.
On 12/13/2016 2:04 PM, xian at unm.edu (Christian Gunning) wrote: