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

Method get

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

Source from the content-addressed store, hash-verified

728 {}
729
730 return_vector get() const {
731 R_xlen_t i, j, nr = ref.nrow(), nc = ref.ncol();
732 return_vector res(nc);
733
734 for (j = 0; j < nc; j++) {
735 for (i = 0; i < nr; i++) {
736 detail::incr(&res[j], ref(i, j));
737 }
738 }
739
740 for (j = 0; j < nc; j++) {
741 detail::div(&res[j], nr);
742 }
743
744 return res;
745 }
746};
747
748// ColMeans

Callers

nothing calls this directly

Calls 4

incrFunction · 0.85
divFunction · 0.85
nrowMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected