[[Rcpp::export]]
| 346 | |
| 347 | // [[Rcpp::export]] |
| 348 | NumericMatrix matrix_scalar_plus4(const NumericMatrix & x, double y) { |
| 349 | NumericMatrix z(x.rows(), x.cols()); |
| 350 | z = y + x; |
| 351 | return x; |
| 352 | } |
| 353 | |
| 354 | // [[Rcpp::export]] |
| 355 | NumericMatrix matrix_scalar_divide(const NumericMatrix & x, double y) { |