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

Function complex_REALSXP

inst/tinytest/cpp/Vector.cpp:117–124  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

115
116// [[Rcpp::export]]
117ComplexVector complex_REALSXP(SEXP vec){
118 ComplexVector x(vec);
119 int nn = x.size();
120 NumericVector tmp(nn, 3.0);
121 ComplexVector tmp1(tmp);
122 x = x * tmp1;
123 return x ;
124}
125
126// [[Rcpp::export]]
127IntegerVector integer_ctor(){

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected