Hey Marco,<br> I think MatGetRow() should do what you are after.<br><br><a href="http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetRow.html">http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetRow.html</a><br>
<br>Cheers,<br> Dave<br><br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 10:01 PM, Marco Schauer <span dir="ltr"><<a href="mailto:m.schauer@tu-bs.de">m.schauer@tu-bs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
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?<br>
Kind regards<br><font color="#888888">
Marco<br>
<br>
</font></blockquote></div><br>