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<br>error: no matching function for call to ‘arma::Mat<double>::submat(arma::uvec&, int&)’<br>
<br><div class="gmail_quote">On 9 October 2012 19:55, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 9 October 2012 at 19:07, <a href="mailto:mateusz.kaduk@gmail.com">mateusz.kaduk@gmail.com</a> wrote:<br>
| Can you provide an example how to convert Armadillo colvec to uvec vector which<br>
| I assume works as selector for rows?<br>
<br>
</div>You may need to loop (or use STL iterators) to fill the uvec position by<br>
position. Then use the subset, and proceed with your correlation<br>
calculation. I don't think there is a shortcut.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br>