#include "petscmat.h" 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; alternatively, you can use PETSC_DECIDE | |
cll | - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX |
Notes: the iscol argument MST be the same on each processor
Level:advanced
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages