xref: /petsc/include/petscis.h (revision ee0de897fec99be7c10c7637bbd068d61b2ce625)
1 /* $Id: is.h,v 1.19 1996/01/01 01:05:46 bsmith Exp balay $ */
2 
3 /*
4       An index set is essentially a subset of the integers. They are used
5    for defining scatters and gathers.
6 */
7 #if !defined(__IS_PACKAGE)
8 #define __IS_PACKAGE
9 #include "petsc.h"
10 
11 typedef enum {IS_SEQ=0, IS_STRIDE_SEQ=2} IndexSetType;
12 
13 #define IS_COOKIE PETSC_COOKIE+2
14 
15 typedef struct _IS* IS;
16 
17 extern int   ISCreateSeq(MPI_Comm,int,int *,IS *);
18 extern int   ISCreateStrideSeq(MPI_Comm,int,int,int,IS *);
19 
20 extern int   ISDestroy(IS);
21 
22 extern int   ISStrideGetInfo(IS,int *,int*);
23 
24 extern int   ISSetPermutation(IS);
25 extern int   ISIsPermutation(IS);
26 extern int   ISSetIdentity(IS);
27 extern int   ISIsIdentity(IS);
28 
29 extern int   ISGetIndices(IS,int **);
30 extern int   ISRestoreIndices(IS,int **);
31 extern int   ISGetSize(IS,int *);
32 extern int   ISGetLocalSize(IS,int *);
33 extern int   ISInvertPermutation(IS,IS*);
34 extern int   ISView(IS,Viewer);
35 extern int   ISCompareIndices(IS , IS , int *);
36 #endif
37