| 27 | |
| 28 | inline bool is_atomic(SEXP x) { return Rf_length(x) == 1; } |
| 29 | inline bool is_matrix(SEXP x) { |
| 30 | SEXP dim = Rf_getAttrib( x, R_DimSymbol); |
| 31 | return dim != R_NilValue && Rf_length(dim) == 2; |
| 32 | } |
| 33 | template <> inline bool is__simple<int>(SEXP x) { |
| 34 | return is_atomic(x) && TYPEOF(x) == INTSXP; |
| 35 | } |
no outgoing calls
no test coverage detected