[petsc-users] get row or column vector from a matrix

Hong Zhang hzhang at mcs.anl.gov
Thu Oct 6 15:42:50 CDT 2011


NAN :
> Dear all,
> I created a matrix (
>
> MATMPISBAIJ). I want to get the column or row vector after finishing
> assemble the matrix. Is there a way to do that in the exist PETSC routine?

You can call
MatGetRow(). See
http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetRow.html

Hong


More information about the petsc-users mailing list