We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a0ff7 commit 56b7eccCopy full SHA for 56b7ecc
ChangeLog
@@ -1,3 +1,7 @@
1
+2014-04-14 Romain Francois <[email protected]>
2
+
3
+ * inst/include/Rcpp/api/meat/is.h: added is__simple<Rcomplex>
4
5
2015-04-12 Dirk Eddelbuettel <[email protected]>
6
7
* vignettes/Rcpp-FAQ.Rnw: Also load Rcpp to make cppFunction visible
inst/include/Rcpp/api/meat/is.h
@@ -45,6 +45,9 @@ namespace Rcpp {
45
template <> inline bool is__simple<String>(SEXP x) {
46
return is_atomic(x) && TYPEOF(x) == STRSXP;
47
}
48
+ template <> inline bool is__simple<Rcomplex>(SEXP x) {
49
+ return is_atomic(x) && TYPEOF(x) == CPLXSXP;
50
+ }
51
template <> inline bool is__simple<CharacterVector>(SEXP x) {
52
return TYPEOF(x) == STRSXP;
53
0 commit comments