[[Rcpp::export]]
| 2 | |
| 3 | // [[Rcpp::export]] |
| 4 | double sumTest(Rcpp::NumericVector v, int begin, int end) { |
| 5 | return Rcpp::algorithm::sum(v.begin() + (begin - 1), v.begin() + end); |
| 6 | } |
| 7 | |
| 8 | // [[Rcpp::export]] |
| 9 | double sumTest_nona(Rcpp::NumericVector v, int begin, int end) { |