[petsc-users] How to get number of local nonzeros of a matrix?

Jed Brown jedbrown at mcs.anl.gov
Thu Dec 29 13:34:57 CST 2011


On Thu, Dec 29, 2011 at 13:32, Matthew Knepley <knepley at gmail.com> wrote:

> We do nto recommend it, but you can use
> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html
>

Or, more likely,

http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetRowIJ.html


But the matrices are not actually stored this way, so calling this function
involves a copy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111229/42429a4c/attachment.htm>


More information about the petsc-users mailing list