[[Rcpp::export]]
| 450 | |
| 451 | // [[Rcpp::export]] |
| 452 | List 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]] |
| 478 | List runit_rep( IntegerVector xx ){ |