Dear all, I am struggeling with checking for NA and Inf in a loop over a numeric vector. I have created these two helpers:
//[[Rcpp::export]] bool isna( double x){ return NumericVector::is_na(x) ; } //[[Rcpp::export]] bool isinf( double x){ return NumericVector::is_infinite(x) ; } isna works but compiling isinf gives: error: 'is_infinite' is not a member of 'Rcpp::NumericVector {aka Rcpp::Vector<14>}' >From what I can read on the web, is_infinte IS implemented, so I can't spot >what is wrong. Any insight? Cheers Søren _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel