/ lib / numpy / core / include / numpy / old_defines.h
old_defines.h
  1  /* This header is deprecated as of NumPy 1.7 */
  2  #ifndef NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_
  3  #define NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_
  4  
  5  #if defined(NPY_NO_DEPRECATED_API) && NPY_NO_DEPRECATED_API >= NPY_1_7_API_VERSION
  6  #error The header "old_defines.h" is deprecated as of NumPy 1.7.
  7  #endif
  8  
  9  #define NDARRAY_VERSION NPY_VERSION
 10  
 11  #define PyArray_MIN_BUFSIZE NPY_MIN_BUFSIZE
 12  #define PyArray_MAX_BUFSIZE NPY_MAX_BUFSIZE
 13  #define PyArray_BUFSIZE NPY_BUFSIZE
 14  
 15  #define PyArray_PRIORITY NPY_PRIORITY
 16  #define PyArray_SUBTYPE_PRIORITY NPY_PRIORITY
 17  #define PyArray_NUM_FLOATTYPE NPY_NUM_FLOATTYPE
 18  
 19  #define NPY_MAX PyArray_MAX
 20  #define NPY_MIN PyArray_MIN
 21  
 22  #define PyArray_TYPES       NPY_TYPES
 23  #define PyArray_BOOL        NPY_BOOL
 24  #define PyArray_BYTE        NPY_BYTE
 25  #define PyArray_UBYTE       NPY_UBYTE
 26  #define PyArray_SHORT       NPY_SHORT
 27  #define PyArray_USHORT      NPY_USHORT
 28  #define PyArray_INT         NPY_INT
 29  #define PyArray_UINT        NPY_UINT
 30  #define PyArray_LONG        NPY_LONG
 31  #define PyArray_ULONG       NPY_ULONG
 32  #define PyArray_LONGLONG    NPY_LONGLONG
 33  #define PyArray_ULONGLONG   NPY_ULONGLONG
 34  #define PyArray_HALF        NPY_HALF
 35  #define PyArray_FLOAT       NPY_FLOAT
 36  #define PyArray_DOUBLE      NPY_DOUBLE
 37  #define PyArray_LONGDOUBLE  NPY_LONGDOUBLE
 38  #define PyArray_CFLOAT      NPY_CFLOAT
 39  #define PyArray_CDOUBLE     NPY_CDOUBLE
 40  #define PyArray_CLONGDOUBLE NPY_CLONGDOUBLE
 41  #define PyArray_OBJECT      NPY_OBJECT
 42  #define PyArray_STRING      NPY_STRING
 43  #define PyArray_UNICODE     NPY_UNICODE
 44  #define PyArray_VOID        NPY_VOID
 45  #define PyArray_DATETIME    NPY_DATETIME
 46  #define PyArray_TIMEDELTA   NPY_TIMEDELTA
 47  #define PyArray_NTYPES      NPY_NTYPES
 48  #define PyArray_NOTYPE      NPY_NOTYPE
 49  #define PyArray_CHAR        NPY_CHAR
 50  #define PyArray_USERDEF     NPY_USERDEF
 51  #define PyArray_NUMUSERTYPES NPY_NUMUSERTYPES
 52  
 53  #define PyArray_INTP        NPY_INTP
 54  #define PyArray_UINTP       NPY_UINTP
 55  
 56  #define PyArray_INT8    NPY_INT8
 57  #define PyArray_UINT8   NPY_UINT8
 58  #define PyArray_INT16   NPY_INT16
 59  #define PyArray_UINT16  NPY_UINT16
 60  #define PyArray_INT32   NPY_INT32
 61  #define PyArray_UINT32  NPY_UINT32
 62  
 63  #ifdef NPY_INT64
 64  #define PyArray_INT64   NPY_INT64
 65  #define PyArray_UINT64  NPY_UINT64
 66  #endif
 67  
 68  #ifdef NPY_INT128
 69  #define PyArray_INT128 NPY_INT128
 70  #define PyArray_UINT128 NPY_UINT128
 71  #endif
 72  
 73  #ifdef NPY_FLOAT16
 74  #define PyArray_FLOAT16  NPY_FLOAT16
 75  #define PyArray_COMPLEX32  NPY_COMPLEX32
 76  #endif
 77  
 78  #ifdef NPY_FLOAT80
 79  #define PyArray_FLOAT80  NPY_FLOAT80
 80  #define PyArray_COMPLEX160  NPY_COMPLEX160
 81  #endif
 82  
 83  #ifdef NPY_FLOAT96
 84  #define PyArray_FLOAT96  NPY_FLOAT96
 85  #define PyArray_COMPLEX192  NPY_COMPLEX192
 86  #endif
 87  
 88  #ifdef NPY_FLOAT128
 89  #define PyArray_FLOAT128  NPY_FLOAT128
 90  #define PyArray_COMPLEX256  NPY_COMPLEX256
 91  #endif
 92  
 93  #define PyArray_FLOAT32    NPY_FLOAT32
 94  #define PyArray_COMPLEX64  NPY_COMPLEX64
 95  #define PyArray_FLOAT64    NPY_FLOAT64
 96  #define PyArray_COMPLEX128 NPY_COMPLEX128
 97  
 98  
 99  #define PyArray_TYPECHAR        NPY_TYPECHAR
100  #define PyArray_BOOLLTR         NPY_BOOLLTR
101  #define PyArray_BYTELTR         NPY_BYTELTR
102  #define PyArray_UBYTELTR        NPY_UBYTELTR
103  #define PyArray_SHORTLTR        NPY_SHORTLTR
104  #define PyArray_USHORTLTR       NPY_USHORTLTR
105  #define PyArray_INTLTR          NPY_INTLTR
106  #define PyArray_UINTLTR         NPY_UINTLTR
107  #define PyArray_LONGLTR         NPY_LONGLTR
108  #define PyArray_ULONGLTR        NPY_ULONGLTR
109  #define PyArray_LONGLONGLTR     NPY_LONGLONGLTR
110  #define PyArray_ULONGLONGLTR    NPY_ULONGLONGLTR
111  #define PyArray_HALFLTR         NPY_HALFLTR
112  #define PyArray_FLOATLTR        NPY_FLOATLTR
113  #define PyArray_DOUBLELTR       NPY_DOUBLELTR
114  #define PyArray_LONGDOUBLELTR   NPY_LONGDOUBLELTR
115  #define PyArray_CFLOATLTR       NPY_CFLOATLTR
116  #define PyArray_CDOUBLELTR      NPY_CDOUBLELTR
117  #define PyArray_CLONGDOUBLELTR  NPY_CLONGDOUBLELTR
118  #define PyArray_OBJECTLTR       NPY_OBJECTLTR
119  #define PyArray_STRINGLTR       NPY_STRINGLTR
120  #define PyArray_STRINGLTR2      NPY_STRINGLTR2
121  #define PyArray_UNICODELTR      NPY_UNICODELTR
122  #define PyArray_VOIDLTR         NPY_VOIDLTR
123  #define PyArray_DATETIMELTR     NPY_DATETIMELTR
124  #define PyArray_TIMEDELTALTR    NPY_TIMEDELTALTR
125  #define PyArray_CHARLTR         NPY_CHARLTR
126  #define PyArray_INTPLTR         NPY_INTPLTR
127  #define PyArray_UINTPLTR        NPY_UINTPLTR
128  #define PyArray_GENBOOLLTR      NPY_GENBOOLLTR
129  #define PyArray_SIGNEDLTR       NPY_SIGNEDLTR
130  #define PyArray_UNSIGNEDLTR     NPY_UNSIGNEDLTR
131  #define PyArray_FLOATINGLTR     NPY_FLOATINGLTR
132  #define PyArray_COMPLEXLTR      NPY_COMPLEXLTR
133  
134  #define PyArray_QUICKSORT   NPY_QUICKSORT
135  #define PyArray_HEAPSORT    NPY_HEAPSORT
136  #define PyArray_MERGESORT   NPY_MERGESORT
137  #define PyArray_SORTKIND    NPY_SORTKIND
138  #define PyArray_NSORTS      NPY_NSORTS
139  
140  #define PyArray_NOSCALAR       NPY_NOSCALAR
141  #define PyArray_BOOL_SCALAR    NPY_BOOL_SCALAR
142  #define PyArray_INTPOS_SCALAR  NPY_INTPOS_SCALAR
143  #define PyArray_INTNEG_SCALAR  NPY_INTNEG_SCALAR
144  #define PyArray_FLOAT_SCALAR   NPY_FLOAT_SCALAR
145  #define PyArray_COMPLEX_SCALAR NPY_COMPLEX_SCALAR
146  #define PyArray_OBJECT_SCALAR  NPY_OBJECT_SCALAR
147  #define PyArray_SCALARKIND     NPY_SCALARKIND
148  #define PyArray_NSCALARKINDS   NPY_NSCALARKINDS
149  
150  #define PyArray_ANYORDER     NPY_ANYORDER
151  #define PyArray_CORDER       NPY_CORDER
152  #define PyArray_FORTRANORDER NPY_FORTRANORDER
153  #define PyArray_ORDER        NPY_ORDER
154  
155  #define PyDescr_ISBOOL      PyDataType_ISBOOL
156  #define PyDescr_ISUNSIGNED  PyDataType_ISUNSIGNED
157  #define PyDescr_ISSIGNED    PyDataType_ISSIGNED
158  #define PyDescr_ISINTEGER   PyDataType_ISINTEGER
159  #define PyDescr_ISFLOAT     PyDataType_ISFLOAT
160  #define PyDescr_ISNUMBER    PyDataType_ISNUMBER
161  #define PyDescr_ISSTRING    PyDataType_ISSTRING
162  #define PyDescr_ISCOMPLEX   PyDataType_ISCOMPLEX
163  #define PyDescr_ISPYTHON    PyDataType_ISPYTHON
164  #define PyDescr_ISFLEXIBLE  PyDataType_ISFLEXIBLE
165  #define PyDescr_ISUSERDEF   PyDataType_ISUSERDEF
166  #define PyDescr_ISEXTENDED  PyDataType_ISEXTENDED
167  #define PyDescr_ISOBJECT    PyDataType_ISOBJECT
168  #define PyDescr_HASFIELDS   PyDataType_HASFIELDS
169  
170  #define PyArray_LITTLE NPY_LITTLE
171  #define PyArray_BIG NPY_BIG
172  #define PyArray_NATIVE NPY_NATIVE
173  #define PyArray_SWAP NPY_SWAP
174  #define PyArray_IGNORE NPY_IGNORE
175  
176  #define PyArray_NATBYTE NPY_NATBYTE
177  #define PyArray_OPPBYTE NPY_OPPBYTE
178  
179  #define PyArray_MAX_ELSIZE NPY_MAX_ELSIZE
180  
181  #define PyArray_USE_PYMEM NPY_USE_PYMEM
182  
183  #define PyArray_RemoveLargest PyArray_RemoveSmallest
184  
185  #define PyArray_UCS4 npy_ucs4
186  
187  #endif  /* NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_ */