# MatNestGetSize
Returns the size of the `MATNEST` matrix. 
## Synopsis
```
#include "petscmat.h"   
PetscErrorCode MatNestGetSize(Mat A, PetscInt *M, PetscInt *N)
```
Not collective


## Input Parameter

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



## Output Parameters

- ***M -*** number of rows in the nested mat
- ***N -*** number of cols in the nested mat





## See Also
 `MATNEST`, `MatNestGetSubMat()`, `MatNestGetSubMats()`, `MATNEST`, `MatCreateNest()`, `MatNestGetLocalISs()`,
`MatNestGetISs()`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/nest/matnest.c.html#MatNestGetSize_Nest">MatNestGetSize_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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
