[Rcpp-devel] filling in blocks of a matrix
Dirk Eddelbuettel
edd at debian.org
Thu Feb 13 14:08:01 CET 2014
On 13 February 2014 at 11:23, Hideyoshi Maeda wrote:
| I am looking to see it is possible to fill in a matrix with another matrix.
|
| I have three matrices, out1 which is a 5x5 zero matrix
|
| out2 is a 3x3 matrix with each value set as 8
|
| and out3 which is a 5x4 matrix with each value set as 9
|
| I would like to change part of my out1 matrix by filling it with the values in out2 or out3, is this possible?
I would do that in Armadillo via RcppArmadillo -- as Armadillo has a number
of sub-matrix views, subsetters and assignments.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list