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

Function sumTest

inst/tinytest/cpp/algorithm.cpp:4–6  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

2
3// [[Rcpp::export]]
4double 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]]
9double sumTest_nona(Rcpp::NumericVector v, int begin, int end) {

Callers

nothing calls this directly

Calls 2

sumFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected