# ISGeneralFilter
Remove all indices outside of [start, end) from an `ISGENERAL` 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISGeneralFilter(IS is, PetscInt start, PetscInt end)
```
Collective


## Input Parameters

- ***is -*** the index set
- ***start -*** the lowest index kept
- ***end -*** one more than the highest index kept





## See Also
 [](sec_scatter), `IS`, `ISGENERAL`, `ISCreateGeneral()`, `ISGeneralSetIndices()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/general/general.c.html#ISGeneralFilter">src/vec/is/is/impls/general/general.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/general/general.c.html#ISGeneralFilter_General">ISGeneralFilter_General in src/vec/is/is/impls/general/general.c</A><BR>


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