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

Function runit_complex

inst/tinytest/cpp/sugar.cpp:452–475  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

450
451// [[Rcpp::export]]
452List runit_complex( ComplexVector cx ){
453 return List::create(
454 _["Re"] = Re( cx ),
455 _["Im"] = Im( cx ),
456 _["Conj"] = Conj( cx ),
457 _["Mod"] = Mod( cx ),
458 _["Arg"] = Arg( cx ),
459 _["exp"] = exp( cx ),
460 _["log"] = log( cx ),
461 _["sqrt"] = sqrt( cx ),
462 _["cos"] = cos( cx ),
463 _["sin"] = sin( cx ),
464 _["tan"] = tan( cx ),
465 _["acos"] = acos( cx ),
466 _["asin"] = asin( cx ),
467 _["atan"] = atan( cx ),
468 // _["acosh"] = acosh( cx ),
469 _["asinh"] = asinh( cx ),
470 _["atanh"] = atanh( cx ),
471 _["cosh"] = cosh( cx ),
472 _["sinh"] = sinh( cx ),
473 _["tanh"] = tanh( cx )
474 ) ;
475}
476
477// [[Rcpp::export]]
478List runit_rep( IntegerVector xx ){

Callers

nothing calls this directly

Calls 3

expFunction · 0.50
logFunction · 0.50
sqrtFunction · 0.50

Tested by

no test coverage detected