<p>VecGetSubVector has lower overhead and might be implemented without a copy.</p>
<div class="gmail_quote">On Sep 26, 2011 11:32 AM, "Hui Zhang" <<a href="mailto:mike.hui.zhang@hotmail.com">mike.hui.zhang@hotmail.com</a>> wrote:<br type="attribution">> Hi all,<br>> <br>> I just come into this question: if one wants a sub-vector with contiguous indices<br>
> in the whole vector, surely, one can use getsubvec, but also one can setup a<br>> sparse boolean matrix for this aim; so which method is better, considering <br>> the whole vector is local or parallel?<br>> <br>
> Thanks very much for any suggestions!<br>> <br>> Best wishes,<br>> Hui<br></div>