1 /* $Id: is.h,v 1.17 1995/10/24 21:55:05 bsmith Exp bsmith $ */ 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 #define IS_COOKIE PETSC_COOKIE+2 12 13 typedef struct _IS* IS; 14 15 extern int ISCreateSeq(MPI_Comm,int,int *,IS *); 16 extern int ISCreateStrideSeq(MPI_Comm,int,int,int,IS *); 17 extern int ISAddStrideSeq(IS*,int,int,int); 18 extern int ISStrideGetInfo(IS,int *,int*); 19 20 extern int ISSetPermutation(IS); 21 extern int ISIsPermutation(IS); 22 extern int ISSetIdentity(IS); 23 extern int ISIsIdentity(IS); 24 25 extern int ISGetIndices(IS,int **); 26 extern int ISRestoreIndices(IS,int **); 27 extern int ISGetSize(IS,int *); 28 extern int ISGetLocalSize(IS,int *); 29 extern int ISDestroy(IS); 30 extern int ISInvertPermutation(IS,IS*); 31 extern int ISView(IS,Viewer); 32 33 typedef enum {IS_SEQ=0, IS_STRIDE_SEQ=2} IndexSetType; 34 35 #endif 36