numpy
2.0.0
|
00001 #ifndef NPY_NOPREFIX_H 00002 #define NPY_NOPREFIX_H 00003 00004 /* 00005 * You can directly include noprefix.h as a backward 00006 * compatibility measure 00007 */ 00008 #ifndef NPY_NO_PREFIX 00009 #include "ndarrayobject.h" 00010 #include "npy_interrupt.h" 00011 #endif 00012 00013 #define SIGSETJMP NPY_SIGSETJMP 00014 #define SIGLONGJMP NPY_SIGLONGJMP 00015 #define SIGJMP_BUF NPY_SIGJMP_BUF 00016 00017 #define MAX_DIMS NPY_MAXDIMS 00018 00019 #define longlong npy_longlong 00020 #define ulonglong npy_ulonglong 00021 #define Bool npy_bool 00022 #define longdouble npy_longdouble 00023 #define byte npy_byte 00024 00025 #ifndef _BSD_SOURCE 00026 #define ushort npy_ushort 00027 #define uint npy_uint 00028 #define ulong npy_ulong 00029 #endif 00030 00031 #define ubyte npy_ubyte 00032 #define ushort npy_ushort 00033 #define uint npy_uint 00034 #define ulong npy_ulong 00035 #define cfloat npy_cfloat 00036 #define cdouble npy_cdouble 00037 #define clongdouble npy_clongdouble 00038 #define Int8 npy_int8 00039 #define UInt8 npy_uint8 00040 #define Int16 npy_int16 00041 #define UInt16 npy_uint16 00042 #define Int32 npy_int32 00043 #define UInt32 npy_uint32 00044 #define Int64 npy_int64 00045 #define UInt64 npy_uint64 00046 #define Int128 npy_int128 00047 #define UInt128 npy_uint128 00048 #define Int256 npy_int256 00049 #define UInt256 npy_uint256 00050 #define Float16 npy_float16 00051 #define Complex32 npy_complex32 00052 #define Float32 npy_float32 00053 #define Complex64 npy_complex64 00054 #define Float64 npy_float64 00055 #define Complex128 npy_complex128 00056 #define Float80 npy_float80 00057 #define Complex160 npy_complex160 00058 #define Float96 npy_float96 00059 #define Complex192 npy_complex192 00060 #define Float128 npy_float128 00061 #define Complex256 npy_complex256 00062 #define intp npy_intp 00063 #define uintp npy_uintp 00064 #define datetime npy_datetime 00065 #define timedelta npy_timedelta 00066 00067 #define SIZEOF_LONGLONG NPY_SIZEOF_LONGLONG 00068 #define SIZEOF_INTP NPY_SIZEOF_INTP 00069 #define SIZEOF_UINTP NPY_SIZEOF_UINTP 00070 #define SIZEOF_HALF NPY_SIZEOF_HALF 00071 #define SIZEOF_LONGDOUBLE NPY_SIZEOF_LONGDOUBLE 00072 #define SIZEOF_DATETIME NPY_SIZEOF_DATETIME 00073 #define SIZEOF_TIMEDELTA NPY_SIZEOF_TIMEDELTA 00074 00075 #define LONGLONG_FMT NPY_LONGLONG_FMT 00076 #define ULONGLONG_FMT NPY_ULONGLONG_FMT 00077 #define LONGLONG_SUFFIX NPY_LONGLONG_SUFFIX 00078 #define ULONGLONG_SUFFIX NPY_ULONGLONG_SUFFIX 00079 00080 #define MAX_INT8 127 00081 #define MIN_INT8 -128 00082 #define MAX_UINT8 255 00083 #define MAX_INT16 32767 00084 #define MIN_INT16 -32768 00085 #define MAX_UINT16 65535 00086 #define MAX_INT32 2147483647 00087 #define MIN_INT32 (-MAX_INT32 - 1) 00088 #define MAX_UINT32 4294967295U 00089 #define MAX_INT64 LONGLONG_SUFFIX(9223372036854775807) 00090 #define MIN_INT64 (-MAX_INT64 - LONGLONG_SUFFIX(1)) 00091 #define MAX_UINT64 ULONGLONG_SUFFIX(18446744073709551615) 00092 #define MAX_INT128 LONGLONG_SUFFIX(85070591730234615865843651857942052864) 00093 #define MIN_INT128 (-MAX_INT128 - LONGLONG_SUFFIX(1)) 00094 #define MAX_UINT128 ULONGLONG_SUFFIX(170141183460469231731687303715884105728) 00095 #define MAX_INT256 LONGLONG_SUFFIX(57896044618658097711785492504343953926634992332820282019728792003956564819967) 00096 #define MIN_INT256 (-MAX_INT256 - LONGLONG_SUFFIX(1)) 00097 #define MAX_UINT256 ULONGLONG_SUFFIX(115792089237316195423570985008687907853269984665640564039457584007913129639935) 00098 00099 #define MAX_BYTE NPY_MAX_BYTE 00100 #define MIN_BYTE NPY_MIN_BYTE 00101 #define MAX_UBYTE NPY_MAX_UBYTE 00102 #define MAX_SHORT NPY_MAX_SHORT 00103 #define MIN_SHORT NPY_MIN_SHORT 00104 #define MAX_USHORT NPY_MAX_USHORT 00105 #define MAX_INT NPY_MAX_INT 00106 #define MIN_INT NPY_MIN_INT 00107 #define MAX_UINT NPY_MAX_UINT 00108 #define MAX_LONG NPY_MAX_LONG 00109 #define MIN_LONG NPY_MIN_LONG 00110 #define MAX_ULONG NPY_MAX_ULONG 00111 #define MAX_LONGLONG NPY_MAX_LONGLONG 00112 #define MIN_LONGLONG NPY_MIN_LONGLONG 00113 #define MAX_ULONGLONG NPY_MAX_ULONGLONG 00114 #define MIN_DATETIME NPY_MIN_DATETIME 00115 #define MAX_DATETIME NPY_MAX_DATETIME 00116 #define MIN_TIMEDELTA NPY_MIN_TIMEDELTA 00117 #define MAX_TIMEDELTA NPY_MAX_TIMEDELTA 00118 00119 #define BITSOF_BOOL NPY_BITSOF_BOOL 00120 #define BITSOF_CHAR NPY_BITSOF_CHAR 00121 #define BITSOF_SHORT NPY_BITSOF_SHORT 00122 #define BITSOF_INT NPY_BITSOF_INT 00123 #define BITSOF_LONG NPY_BITSOF_LONG 00124 #define BITSOF_LONGLONG NPY_BITSOF_LONGLONG 00125 #define BITSOF_HALF NPY_BITSOF_HALF 00126 #define BITSOF_FLOAT NPY_BITSOF_FLOAT 00127 #define BITSOF_DOUBLE NPY_BITSOF_DOUBLE 00128 #define BITSOF_LONGDOUBLE NPY_BITSOF_LONGDOUBLE 00129 #define BITSOF_DATETIME NPY_BITSOF_DATETIME 00130 #define BITSOF_TIMEDELTA NPY_BITSOF_TIMEDELTA 00131 00132 #define _pya_malloc PyArray_malloc 00133 #define _pya_free PyArray_free 00134 #define _pya_realloc PyArray_realloc 00135 00136 #define BEGIN_THREADS_DEF NPY_BEGIN_THREADS_DEF 00137 #define BEGIN_THREADS NPY_BEGIN_THREADS 00138 #define END_THREADS NPY_END_THREADS 00139 #define ALLOW_C_API_DEF NPY_ALLOW_C_API_DEF 00140 #define ALLOW_C_API NPY_ALLOW_C_API 00141 #define DISABLE_C_API NPY_DISABLE_C_API 00142 00143 #define PY_FAIL NPY_FAIL 00144 #define PY_SUCCEED NPY_SUCCEED 00145 00146 #ifndef TRUE 00147 #define TRUE NPY_TRUE 00148 #endif 00149 00150 #ifndef FALSE 00151 #define FALSE NPY_FALSE 00152 #endif 00153 00154 #define LONGDOUBLE_FMT NPY_LONGDOUBLE_FMT 00155 00156 #define CONTIGUOUS NPY_CONTIGUOUS 00157 #define C_CONTIGUOUS NPY_C_CONTIGUOUS 00158 #define FORTRAN NPY_FORTRAN 00159 #define F_CONTIGUOUS NPY_F_CONTIGUOUS 00160 #define OWNDATA NPY_OWNDATA 00161 #define FORCECAST NPY_FORCECAST 00162 #define ENSURECOPY NPY_ENSURECOPY 00163 #define ENSUREARRAY NPY_ENSUREARRAY 00164 #define ELEMENTSTRIDES NPY_ELEMENTSTRIDES 00165 #define ALIGNED NPY_ALIGNED 00166 #define NOTSWAPPED NPY_NOTSWAPPED 00167 #define WRITEABLE NPY_WRITEABLE 00168 #define UPDATEIFCOPY NPY_UPDATEIFCOPY 00169 #define ARR_HAS_DESCR NPY_ARR_HAS_DESCR 00170 #define BEHAVED NPY_BEHAVED 00171 #define BEHAVED_NS NPY_BEHAVED_NS 00172 #define CARRAY NPY_CARRAY 00173 #define CARRAY_RO NPY_CARRAY_RO 00174 #define FARRAY NPY_FARRAY 00175 #define FARRAY_RO NPY_FARRAY_RO 00176 #define DEFAULT NPY_DEFAULT 00177 #define IN_ARRAY NPY_IN_ARRAY 00178 #define OUT_ARRAY NPY_OUT_ARRAY 00179 #define INOUT_ARRAY NPY_INOUT_ARRAY 00180 #define IN_FARRAY NPY_IN_FARRAY 00181 #define OUT_FARRAY NPY_OUT_FARRAY 00182 #define INOUT_FARRAY NPY_INOUT_FARRAY 00183 #define UPDATE_ALL NPY_UPDATE_ALL 00184 00185 #define OWN_DATA NPY_OWNDATA 00186 #define BEHAVED_FLAGS NPY_BEHAVED 00187 #define BEHAVED_FLAGS_NS NPY_BEHAVED_NS 00188 #define CARRAY_FLAGS_RO NPY_CARRAY_RO 00189 #define CARRAY_FLAGS NPY_CARRAY 00190 #define FARRAY_FLAGS NPY_FARRAY 00191 #define FARRAY_FLAGS_RO NPY_FARRAY_RO 00192 #define DEFAULT_FLAGS NPY_DEFAULT 00193 #define UPDATE_ALL_FLAGS NPY_UPDATE_ALL_FLAGS 00194 00195 #ifndef MIN 00196 #define MIN PyArray_MIN 00197 #endif 00198 #ifndef MAX 00199 #define MAX PyArray_MAX 00200 #endif 00201 #define MAX_INTP NPY_MAX_INTP 00202 #define MIN_INTP NPY_MIN_INTP 00203 #define MAX_UINTP NPY_MAX_UINTP 00204 #define INTP_FMT NPY_INTP_FMT 00205 00206 #ifndef PYPY_VERSION 00207 #define REFCOUNT PyArray_REFCOUNT 00208 #define MAX_ELSIZE NPY_MAX_ELSIZE 00209 #endif 00210 00211 #endif