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

Function complex_

inst/tinytest/cpp/Vector.cpp:86–94  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

84
85// [[Rcpp::export]]
86ComplexVector complex_(){
87 ComplexVector x(10) ;
88 Rcomplex rc ;
89 for( int i=0; i<10; i++) {
90 rc.r = rc.i = i + 0.0 ;
91 x[i] = rc ;
92 }
93 return x ;
94}
95
96// [[Rcpp::export]]
97ComplexVector complex_CPLXSXP( ComplexVector x ){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected