| 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 |