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 | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel