how to get bandwidth of a matrix

Marco Schauer m.schauer at tu-bs.de
Wed Nov 12 07:46:08 CST 2008


Hey Dave,
It works! Thanks a lot.
Regards,
Marco


Dave May schrieb:
> Hey Marco,
>   I think MatGetRow() should do what you are after.
>
> http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetRow.html
>
> Cheers,
>   Dave
>
>
> On Wed, Nov 12, 2008 at 10:01 PM, Marco Schauer <m.schauer at tu-bs.de 
> <mailto:m.schauer at tu-bs.de>> 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
>
>




More information about the petsc-users mailing list