Maybe I am not good in coding, but even though I managed to make uvec with ones and zeros, I cannot use it to select rows in given column, compiler complains error: no matching function for call to ‘arma::Mat<double>::submat(arma::uvec&, int&)’
On 9 October 2012 19:55, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 9 October 2012 at 19:07, mateusz.ka...@gmail.com wrote: > | Can you provide an example how to convert Armadillo colvec to uvec > vector which > | I assume works as selector for rows? > > You may need to loop (or use STL iterators) to fill the uvec position by > position. Then use the subset, and proceed with your correlation > calculation. I don't think there is a shortcut. > > 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