# ISGetMinMax
Gets the minimum and maximum values in an IS 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode ISGetMinMax(IS is, PetscInt *min, PetscInt *max)
```
Not Collective


## Input Parameter

- ***is -*** the index set



## Output Parameters

- ***min -*** the minimum value
- ***max -*** the maximum value





## Notes
Empty index sets return min=PETSC_MAX_INT and max=PETSC_MIN_INT.
In parallel, it returns the min and max of the local portion of the IS


## See Also
 `ISGetIndices()`, `ISRestoreIndices()`, `ISGetIndicesF90()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/interface/index.c.html#ISGetMinMax">src/vec/is/is/interface/index.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/index.c)


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