# MatISGetLocalToGlobalMapping
Gets the local-to-global numbering of the `MATIS` object 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatISGetLocalToGlobalMapping(Mat A, ISLocalToGlobalMapping *rmapping, ISLocalToGlobalMapping *cmapping)
```
Not Collective


## Input Parameter

- ***A -*** the matrix



## Output Parameters

- ***rmapping -*** row mapping
- ***cmapping -*** column mapping



## Note
The returned map can be different from the one used to construct the `MATIS` object, since it will not contain negative or repeated indices.




## See Also
 `MatIS`, `MatSetLocalToGlobalMapping()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/is/matis.c.html#MatISGetLocalToGlobalMapping">src/mat/impls/is/matis.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/is/matis.c.html#MatISGetLocalToGlobalMapping_IS">MatISGetLocalToGlobalMapping_IS in src/mat/impls/is/matis.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/is/matis.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)  
