1 /* $Id: is.h,v 1.21 1996/02/15 14:58:23 balay 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 ISEqual(IS , IS , int *); 36 extern int ISSort(IS); 37 extern int ISSorted(IS, int*); 38 #endif 39