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