int MatGetSubMatrix(Mat mat,IS isrow,IS iscol,int csize,MatReuse cll,Mat *newmat)Collective on Mat
mat | - the original matrix |
isrow | - rows this processor should obtain |
iscol | - columns for all processors you wish to keep |
csize | - number of columns "local" to this processor (does nothing for sequential matrices). This should match the result from VecGetLocalSize(x,...) if you plan to use the matrix in a A*x or use PETSC_DECIDE |
cll | - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX |
Level:advanced
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents