[[Rcpp::export]]
| 339 | |
| 340 | // [[Rcpp::export]] |
| 341 | NumericMatrix matrix_scalar_plus3(const NumericMatrix & x, double y) { |
| 342 | NumericMatrix z(x.rows(), x.cols()); |
| 343 | z = x + y; |
| 344 | return x; |
| 345 | } |
| 346 | |
| 347 | // [[Rcpp::export]] |
| 348 | NumericMatrix matrix_scalar_plus4(const NumericMatrix & x, double y) { |