int MatGetSubMatrices(Mat mat,int n,IS *irow,IS *icol,MatGetSubMatrixCall scall,Mat **submat)Collective on Mat
mat | - the matrix |
n | - the number of submatrixes to be extracted |
irow, icol | - index sets of rows and columns to extract |
scall | - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX |
When extracting submatrices from a parallel matrix, each processor canform a different submatrix by setting the rows and columns of itsindividual index sets according to the local submatrix desired.
When finished using the submatrices, the user should destroythem with MatDestroySubMatrices().
Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents