petsc: symmetric matrix

Satish Balay balay at mcs.anl.gov
Wed Nov 22 10:47:31 CST 2006


On Thu, 23 Nov 2006, sqbang wrote:

> Hi, all
>    when I create a matrix with MatCreateSeqAIJ() and the matrix is
> symmetry,how can I complete it while only the half data is inserted
> ? does the memory needed be half of the same scale matrix but not
> symmetry ? if not,how should i set it ?
> thanks

You'll have to use MatCreateSeqSBAIJ() for this purpose.

Satish




More information about the petsc-users mailing list