[petsc-users] Whether can one set the row and col sizes of a Mat to zero when creating it?

Barry Smith bsmith at mcs.anl.gov
Mon May 10 16:16:21 CDT 2010


  Yes, Mats and Vecs can have zero sizes. They are just like other Mats and Vecs but with no space allocated for data. 

  Since these are not commonly used they may have glitches, let us know about them and we will fix them.

   Barry

On May 10, 2010, at 4:08 PM, Yujie wrote:

> Dear PETSc developers,
> 
> Whether can one set the row and col sizes of a Mat to zero when creating it?
> How about a Vec?
> 
> If we can, how about the object of Mat and Vec? thanks a lot.
> 
> Regards,
> Yujie



More information about the petsc-users mailing list