# ISStrideGetInfo
Returns the first index in a stride index set and the stride width from an `IS` of `ISType` `ISSTRIDE` 
## Synopsis
```
#include "petscis.h"   
PetscErrorCode ISStrideGetInfo(IS is, PetscInt *first, PetscInt *step)
```
Not Collective


## Input Parameter

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



## Output Parameters

- ***first -*** the first index
- ***step -*** the stride width





## See Also
 [](sec_scatter), `IS`, `ISCreateStride()`, `ISGetSize()`, `ISSTRIDE`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/tutorials/ex2.c.html">src/vec/is/is/tutorials/ex2.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/tutorials/ex2f.F90.html">src/vec/is/is/tutorials/ex2f.F90.html</A><BR>


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