# ISExpandIndicesGeneral
convert the indices of an array `IS` into non-block indices in an array of `ISGENERAL` 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISExpandIndicesGeneral(PetscInt n, PetscInt nkeys, PetscInt bs, PetscInt imax, const IS is_in[], IS is_out[])
```

## Input Parameters

- ***n -*** the length of the index set (not being used)
- ***nkeys -*** expected number of keys when `PETSC_USE_CTABLE` is used
- ***bs -*** the size of block
- ***imax -*** the number of index sets
- ***is_in -*** the blocked array of index sets



## Output Parameter

- ***is_out -*** the non-blocked new index set, as `ISGENERAL`





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

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/utils/isblock.c.html#ISExpandIndicesGeneral">src/vec/is/is/utils/isblock.c</A>


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