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

Method get

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

Source from the content-addressed store, hash-verified

140 {}
141
142 return_vector get() const {
143 R_xlen_t i, j, nr = ref.nrow(), nc = ref.ncol();
144 return_vector res(nr);
145
146 for (j = 0; j < nc; j++) {
147 for (i = 0; i < nr; i++) {
148 detail::incr(&res[i], ref(i, j));
149 }
150 }
151
152 return res;
153 }
154};
155
156// RowSums

Callers

nothing calls this directly

Calls 3

incrFunction · 0.85
nrowMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected