# ISShift
Shift all indices by given offset 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode ISShift(IS is, PetscInt offset, IS isy)
```
Collective


## Input Parameters

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



## Output Parameter

- ***isy -*** the shifted copy of the input index set



## Notes
The offset can be different across processes.
IS is and isy can be the same.




## See Also
 `ISDuplicate()`, `ISCopy()`

## Level
beginner

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/block/block.c.html#ISShift_Block">ISShift_Block in src/vec/is/is/impls/block/block.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/general/general.c.html#ISShift_General">ISShift_General in src/vec/is/is/impls/general/general.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/stride/stride.c.html#ISShift_Stride">ISShift_Stride in src/vec/is/is/impls/stride/stride.c</A><BR>


---
[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)  
