[petsc-users] Sub-indexing or SparseMult?

Hui Zhang mike.hui.zhang at hotmail.com
Mon Sep 26 12:56:42 CDT 2011


thanks a lot!

On Sep 26, 2011, at 6:40 PM, Jed Brown wrote:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110926/b6dd3ff8/attachment.htm>


More information about the petsc-users mailing list