#include "petscmat.h" PetscErrorCode MatNestGetSubMats(Mat A,PetscInt *M,PetscInt *N,Mat ***mat)Not collective
M | - number of rows in the nest matrix | |
N | - number of cols in the nest matrix | |
mat | - 2d array of matrices |
The user should not free the array mat.
In Fortran, this routine has a calling sequence
call MatNestGetSubMats(A, M, N, mat, ierr)where the space allocated for the optional argument mat is assumed large enough (if provided).