[[Rcpp::export]]
| 58 | |
| 59 | // [[Rcpp::export]] |
| 60 | std::vector<double> asStdVectorDouble(SEXP x){ |
| 61 | std::vector<double> iv = as< std::vector<double> >( x ); |
| 62 | for (size_t i=0; i<iv.size(); i++) { |
| 63 | iv[i] = 2*iv[i]; |
| 64 | } |
| 65 | return iv ; |
| 66 | } |
| 67 | |
| 68 | // [[Rcpp::export]] |
| 69 | std::vector<Rbyte> asStdVectorRaw( SEXP x){ |