[petsc-users] Sub-indexing or SparseMult?

Jed Brown jedbrown at mcs.anl.gov
Mon Sep 26 11:40:52 CDT 2011


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/6ba90d8b/attachment.htm>


More information about the petsc-users mailing list