how to get bandwidth of a matrix

Dave May dave.mayhem23 at
Wed Nov 12 05:39:27 CST 2008

Hey Marco,
  I think MatGetRow() should do what you are after.


On Wed, Nov 12, 2008 at 10:01 PM, Marco Schauer <m.schauer at> wrote:

> Hello,
> I try to find out the bandwidth of my matrix. Currently I use MatInfo to
> get nonzero entities, but MatInfo returns only the allocated, used and
> unneeded entities of the whole matrix. Is it possible to get the nonzero
> entities for each row?
> Kind regards
> Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list