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