22 #ifndef Rcpp__traits_is_finite_h
23 #define Rcpp__traits_is_finite_h
35 return x != NA_INTEGER;
45 return !( !R_finite(x.r) || !R_finite(x.i) );
55 return x != NA_LOGICAL;
bool is_finite< REALSXP >(double x)
bool is_finite< LGLSXP >(int x)
bool is_finite< INTSXP >(int x)
bool is_finite< CPLXSXP >(Rcomplex x)
bool is_finite< STRSXP >(SEXP)
bool is_finite(typename storage_type< RTYPE >::type)