[[Rcpp::export]]
| 529 | |
| 530 | // [[Rcpp::export]] |
| 531 | List runit_diag( NumericVector xx, NumericMatrix mm ){ |
| 532 | return List::create( |
| 533 | diag( xx ) , |
| 534 | diag( mm ), |
| 535 | diag( outer( xx, xx, std::plus<double>() ) ) |
| 536 | ) ; |
| 537 | } |
| 538 | |
| 539 | // [[Rcpp::export]] |
| 540 | List runit_gamma( NumericVector xx ){ |