Skip to content
Prev 9466 / 10988 Next

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

I?d be interesting to see what this more C++idomatic version would perform 

nanCount = std::count_if( x.begin(), x.end(), ISNAN ) ;

Because despite all the inlining efforts that has been put in the implementation of NumericVector, its operator[] might not perform as well as using [] on a double*. 

Romain