[[Rcpp::export]]
| 153 | |
| 154 | // [[Rcpp::export]] |
| 155 | double runit_NumericMatrix_column_const( const NumericMatrix m ){ |
| 156 | NumericMatrix::ConstColumn col = m.column(0) ; |
| 157 | return std::accumulate( col.begin(), col.end(), 0.0 ) ; |
| 158 | } |
| 159 | |
| 160 | // [[Rcpp::export]] |
| 161 | NumericMatrix runit_NumericMatrix_cumsum( NumericMatrix input ){ |