MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / asStdVectorDouble

Function asStdVectorDouble

inst/tinytest/cpp/RObject.cpp:60–66  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

58
59// [[Rcpp::export]]
60std::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]]
69std::vector<Rbyte> asStdVectorRaw( SEXP x){

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected