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

Function complex_CPLXSXP

inst/tinytest/cpp/Vector.cpp:97–104  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

95
96// [[Rcpp::export]]
97ComplexVector complex_CPLXSXP( ComplexVector x ){
98 int nn = x.size();
99 for( int i=0; i<nn; i++) {
100 x[i].r = x[i].r*2 ;
101 x[i].i = x[i].i*2 ;
102 }
103 return x ;
104}
105
106// [[Rcpp::export]]
107ComplexVector complex_INTSXP( SEXP vec ){

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected