further about MatGetSubMatrices()

Yujie recrusader at gmail.com
Tue Dec 23 16:36:43 CST 2008


Dear Matthew:

The question is that I can't sort the IS. Because I need extract the matrix
according to the index of IS. I have tried to use MatPermute(). However,
there is not MPIDense-based. I am wondering why MatGetSubMatrices() need use
the sorted IS. Thanks a lot.

Regards,

Yujie

On Tue, Dec 23, 2008 at 2:06 PM, Matthew Knepley <knepley at gmail.com> wrote:

> You can sort them with ISSort.
>
>   Matt
>
> On Tue, Dec 23, 2008 at 12:35 PM, Yujie <recrusader at gmail.com> wrote:
>
>> Hi, PETSc developer
>>
>> I am using MatGetSubMatrices() for my application. Because I need to exact
>> several matrices from the old one according to my index sets. These index
>> sets are not sorted. To MPIDense matrix, it didn't work. could you give me
>> some help? thanks a lot.
>>
>> Happy holiday:).
>>
>> Regards,
>>
>> Yujie
>>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081223/b0abf8d9/attachment.htm>


More information about the petsc-users mailing list