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

Method get

inst/include/Rcpp/sugar/functions/rowSums.h:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 {}
333
334 return_vector get() const {
335 R_xlen_t i, j, nr = ref.nrow(), nc = ref.ncol();
336 return_vector res(nc);
337
338 for (j = 0; j < nc; j++) {
339 for (i = 0; i < nr; i++) {
340 detail::incr(&res[j], ref(i, j));
341 }
342 }
343
344 return res;
345 }
346};
347
348// ColSums

Callers

nothing calls this directly

Calls 3

incrFunction · 0.85
nrowMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected