MatGetSubMatrix

Gets a single submatrix on the same number of processors as the original matrix.

Synopsis

int MatGetSubMatrix(Mat mat,IS isrow,IS iscol,int csize,MatGetSubMatrixCall cll,Mat *newmat)
Collective on Mat

Input Parameters

mat - the original matrix
isrow - rows this processor should obtain
iscol - columns for all processors you wish kept
csize - number of columns "local" to this processor (does nothing for sequential matrices). This should match the result from VecGetLocalSize() if you plan to use the matrix in a A*x
cll - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX

Output Parameter

newmat -the new submatrix, of the same type as the old

See Also

MatGetSubMatrices()

Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents