:orphan:
# MatNestGetISs
Returns the index sets partitioning the row and column spaces of a `MATNEST` 
## Synopsis
```
#include "petscmat.h"   
PetscErrorCode MatNestGetISs(Mat A, IS rows[], IS cols[])
```
Not Collective


## Input Parameter

- ***A  -*** `MATNEST` matrix



## Output Parameters

- ***rows -*** array of row index sets
- ***cols -*** array of column index sets





## Note
The user must have allocated arrays of the correct size. The reference count is not increased on the returned `IS`s.


## See Also
 [](ch_matrices), `Mat`, `MATNEST`, `MatNestGetSubMat()`, `MatNestGetSubMats()`, `MatNestGetSize()`, `MatNestGetLocalISs()`, `MATNEST`,
`MatCreateNest()`, `MatNestGetSubMats()`, `MatNestSetSubMats()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/nest/matnest.c.html#MatNestGetISs">src/mat/impls/nest/matnest.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex81.c.html">src/ksp/ksp/tutorials/ex81.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex70.c.html">src/snes/tutorials/ex70.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/nest/matnest.c.html#MatNestGetISs_Nest">MatNestGetISs_Nest in src/mat/impls/nest/matnest.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/nest/matnest.c)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
