xref: /petsc/include/petscis.h (revision 20563c6b1ea7b82b48c81bbd22ce9170a8c92d3b)
1 
2 /*
3       An index set is essentially a subset of the integers
4 */
5 #if !defined(__IS_PACKAGE)
6 #define __IS_PACKAGE
7 #include "petsc.h"
8 
9 typedef struct _IS* IS;
10 
11 extern int    ISCreateSequential(int,int *,IS *);
12 #if defined(USING_MPI)
13 extern int    ISCreateMPI(int,int,int *,MPI_Comm,IS *);
14 #endif
15 extern int    ISCreateStrideSequential(int,int,int,IS *);
16 extern int    ISStrideGetInfo(IS,int *,int*);
17 
18 extern int   ISSetPermutation(IS);
19 extern int   ISIsPermutation(IS);
20 extern int   ISGetIndices(IS,int **);
21 extern int   ISRestoreIndices(IS,int **);
22 extern int   ISGetSize(IS,int *);
23 extern int   ISGetLocalSize(IS,int *);
24 extern int   ISDestroy(IS);
25 extern int   ISInvertPermutation(IS,IS*);
26 extern int   ISView(IS,Viewer);
27 
28 #endif
29