[[Rcpp::export]]
| 247 | |
| 248 | // [[Rcpp::export]] |
| 249 | NumericVector runit_mapply2(NumericVector xx, NumericVector yy){ |
| 250 | NumericVector res = mapply(xx, yy, std::plus<double>()); |
| 251 | return res; |
| 252 | } |
| 253 | |
| 254 | // [[Rcpp::export]] |
| 255 | NumericVector runit_mapply2_lambda(NumericVector xx, NumericVector yy){ |