22 #ifndef Rcpp__sugar__is_finite_h
23 #define Rcpp__sugar__is_finite_h
28 template <
int RTYPE,
bool NA,
typename VEC_TYPE>
35 return ::Rcpp::traits::is_finite<RTYPE>(
obj[i] ) ;
38 inline R_xlen_t
size()
const {
return obj.size() ; }
48 template <
int RTYPE,
bool NA,
typename T>
int operator[](R_xlen_t i) const
IsFinite(const VEC_TYPE &obj_)
sugar::IsFinite< RTYPE, NA, T > is_finite(const Rcpp::VectorBase< RTYPE, NA, T > &t)