Hi, <br><br>Is it possible to fill an entire matrix with a vector, without looping, as can be done in R:<br><br>m <- matrix(NA, 3, 3)<br>m[] <- 1:9<br><br>I have seen section 15.10 of the manual, but those methods seem to be designed for filling individual rows or columns of a matrix. I tried this:<br>
<br>mu = X * beta;<br>mu_mat = mu;<br><br>but it unsurprisingly did not work.<br><br>Thanks,<br>Richard<br>