On Tue, Sep 21, 2010 at 4:20 AM, Christian Gunning <x...@unm.edu> wrote: > > As a side-note, I just spent some time with arma, and was sad to find > that arma_mat.insert_rows(atrow, rowvec) extends arma_mat, with no > apparent way to do row/col-level in-place replacement.
I just realized that the following works just fine for in-place replacement: NumericVector tmpcube(Dimension(nrow, ncol, nslice)); tmpcube = NumericVector(AparArr); realcube = arma::cube(tmpcube.begin(), nrow, npars, nslice); realcube.slice(1) = realcube.slice(0); best, Christian -- A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama! _______________________________________________ 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