ZTWHHH commited on
Commit
3b84a42
·
verified ·
1 Parent(s): 9df31dc

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/__init__.cpython-310.pyc +0 -0
  2. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_add_newdocs_scalars.cpython-310.pyc +0 -0
  3. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_asarray.cpython-310.pyc +0 -0
  4. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_dtype.cpython-310.pyc +0 -0
  5. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_dtype_ctypes.cpython-310.pyc +0 -0
  6. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_exceptions.cpython-310.pyc +0 -0
  7. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_internal.cpython-310.pyc +0 -0
  8. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_machar.cpython-310.pyc +0 -0
  9. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_methods.cpython-310.pyc +0 -0
  10. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_string_helpers.cpython-310.pyc +0 -0
  11. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_type_aliases.cpython-310.pyc +0 -0
  12. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_ufunc_config.cpython-310.pyc +0 -0
  13. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/arrayprint.cpython-310.pyc +0 -0
  14. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/cversions.cpython-310.pyc +0 -0
  15. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/defchararray.cpython-310.pyc +0 -0
  16. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/einsumfunc.cpython-310.pyc +0 -0
  17. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/function_base.cpython-310.pyc +0 -0
  18. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/getlimits.cpython-310.pyc +0 -0
  19. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/memmap.cpython-310.pyc +0 -0
  20. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/multiarray.cpython-310.pyc +0 -0
  21. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/numeric.cpython-310.pyc +0 -0
  22. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/numerictypes.cpython-310.pyc +0 -0
  23. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/overrides.cpython-310.pyc +0 -0
  24. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/records.cpython-310.pyc +0 -0
  25. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/shape_base.cpython-310.pyc +0 -0
  26. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/umath.cpython-310.pyc +0 -0
  27. evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/umath_tests.cpython-310.pyc +0 -0
  28. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/__ufunc_api.h +314 -0
  29. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h +90 -0
  30. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h +12 -0
  31. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/noprefix.h +211 -0
  32. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/npy_common.h +1086 -0
  33. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/old_defines.h +187 -0
  34. evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/utils.h +37 -0
  35. evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/libnpymath.a +0 -0
  36. evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/npy-pkg-config/mlib.ini +12 -0
  37. evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini +20 -0
  38. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/__init__.cpython-310.pyc +0 -0
  39. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_array_coercion.cpython-310.pyc +0 -0
  40. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_arrayprint.cpython-310.pyc +0 -0
  41. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_casting_floatingpoint_errors.cpython-310.pyc +0 -0
  42. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_cpu_features.cpython-310.pyc +0 -0
  43. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_custom_dtypes.cpython-310.pyc +0 -0
  44. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_dtype.cpython-310.pyc +0 -0
  45. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_getlimits.cpython-310.pyc +0 -0
  46. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_half.cpython-310.pyc +0 -0
  47. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_indexing.cpython-310.pyc +0 -0
  48. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_memmap.cpython-310.pyc +0 -0
  49. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_numpy_2_0_compat.cpython-310.pyc +0 -0
  50. evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_protocols.cpython-310.pyc +0 -0
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (4 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_add_newdocs_scalars.cpython-310.pyc ADDED
Binary file (11 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_asarray.cpython-310.pyc ADDED
Binary file (3.76 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_dtype.cpython-310.pyc ADDED
Binary file (8.2 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_dtype_ctypes.cpython-310.pyc ADDED
Binary file (3.05 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_exceptions.cpython-310.pyc ADDED
Binary file (5.82 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_internal.cpython-310.pyc ADDED
Binary file (23.2 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_machar.cpython-310.pyc ADDED
Binary file (8.31 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_methods.cpython-310.pyc ADDED
Binary file (5.73 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_string_helpers.cpython-310.pyc ADDED
Binary file (3.03 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_type_aliases.cpython-310.pyc ADDED
Binary file (5.35 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/_ufunc_config.cpython-310.pyc ADDED
Binary file (14.2 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/arrayprint.cpython-310.pyc ADDED
Binary file (52.4 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/cversions.cpython-310.pyc ADDED
Binary file (551 Bytes). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/defchararray.cpython-310.pyc ADDED
Binary file (71 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/einsumfunc.cpython-310.pyc ADDED
Binary file (39.6 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/function_base.cpython-310.pyc ADDED
Binary file (17.7 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/getlimits.cpython-310.pyc ADDED
Binary file (19.1 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/memmap.cpython-310.pyc ADDED
Binary file (10.5 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/multiarray.cpython-310.pyc ADDED
Binary file (54.4 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/numeric.cpython-310.pyc ADDED
Binary file (73 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/numerictypes.cpython-310.pyc ADDED
Binary file (17 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/overrides.cpython-310.pyc ADDED
Binary file (6.2 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/records.cpython-310.pyc ADDED
Binary file (30.1 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/shape_base.cpython-310.pyc ADDED
Binary file (26.6 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/umath.cpython-310.pyc ADDED
Binary file (1.72 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/__pycache__/umath_tests.cpython-310.pyc ADDED
Binary file (518 Bytes). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/__ufunc_api.h ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #ifdef _UMATHMODULE
3
+
4
+ extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
5
+
6
+ extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
7
+
8
+ NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndData \
9
+ (PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, int);
10
+ NPY_NO_EXPORT int PyUFunc_RegisterLoopForType \
11
+ (PyUFuncObject *, int, PyUFuncGenericFunction, const int *, void *);
12
+ NPY_NO_EXPORT int PyUFunc_GenericFunction \
13
+ (PyUFuncObject *NPY_UNUSED(ufunc), PyObject *NPY_UNUSED(args), PyObject *NPY_UNUSED(kwds), PyArrayObject **NPY_UNUSED(op));
14
+ NPY_NO_EXPORT void PyUFunc_f_f_As_d_d \
15
+ (char **, npy_intp const *, npy_intp const *, void *);
16
+ NPY_NO_EXPORT void PyUFunc_d_d \
17
+ (char **, npy_intp const *, npy_intp const *, void *);
18
+ NPY_NO_EXPORT void PyUFunc_f_f \
19
+ (char **, npy_intp const *, npy_intp const *, void *);
20
+ NPY_NO_EXPORT void PyUFunc_g_g \
21
+ (char **, npy_intp const *, npy_intp const *, void *);
22
+ NPY_NO_EXPORT void PyUFunc_F_F_As_D_D \
23
+ (char **, npy_intp const *, npy_intp const *, void *);
24
+ NPY_NO_EXPORT void PyUFunc_F_F \
25
+ (char **, npy_intp const *, npy_intp const *, void *);
26
+ NPY_NO_EXPORT void PyUFunc_D_D \
27
+ (char **, npy_intp const *, npy_intp const *, void *);
28
+ NPY_NO_EXPORT void PyUFunc_G_G \
29
+ (char **, npy_intp const *, npy_intp const *, void *);
30
+ NPY_NO_EXPORT void PyUFunc_O_O \
31
+ (char **, npy_intp const *, npy_intp const *, void *);
32
+ NPY_NO_EXPORT void PyUFunc_ff_f_As_dd_d \
33
+ (char **, npy_intp const *, npy_intp const *, void *);
34
+ NPY_NO_EXPORT void PyUFunc_ff_f \
35
+ (char **, npy_intp const *, npy_intp const *, void *);
36
+ NPY_NO_EXPORT void PyUFunc_dd_d \
37
+ (char **, npy_intp const *, npy_intp const *, void *);
38
+ NPY_NO_EXPORT void PyUFunc_gg_g \
39
+ (char **, npy_intp const *, npy_intp const *, void *);
40
+ NPY_NO_EXPORT void PyUFunc_FF_F_As_DD_D \
41
+ (char **, npy_intp const *, npy_intp const *, void *);
42
+ NPY_NO_EXPORT void PyUFunc_DD_D \
43
+ (char **, npy_intp const *, npy_intp const *, void *);
44
+ NPY_NO_EXPORT void PyUFunc_FF_F \
45
+ (char **, npy_intp const *, npy_intp const *, void *);
46
+ NPY_NO_EXPORT void PyUFunc_GG_G \
47
+ (char **, npy_intp const *, npy_intp const *, void *);
48
+ NPY_NO_EXPORT void PyUFunc_OO_O \
49
+ (char **, npy_intp const *, npy_intp const *, void *);
50
+ NPY_NO_EXPORT void PyUFunc_O_O_method \
51
+ (char **, npy_intp const *, npy_intp const *, void *);
52
+ NPY_NO_EXPORT void PyUFunc_OO_O_method \
53
+ (char **, npy_intp const *, npy_intp const *, void *);
54
+ NPY_NO_EXPORT void PyUFunc_On_Om \
55
+ (char **, npy_intp const *, npy_intp const *, void *);
56
+ NPY_NO_EXPORT int PyUFunc_GetPyValues \
57
+ (char *, int *, int *, PyObject **);
58
+ NPY_NO_EXPORT int PyUFunc_checkfperr \
59
+ (int, PyObject *, int *);
60
+ NPY_NO_EXPORT void PyUFunc_clearfperr \
61
+ (void);
62
+ NPY_NO_EXPORT int PyUFunc_getfperr \
63
+ (void);
64
+ NPY_NO_EXPORT int PyUFunc_handlefperr \
65
+ (int, PyObject *, int, int *);
66
+ NPY_NO_EXPORT int PyUFunc_ReplaceLoopBySignature \
67
+ (PyUFuncObject *, PyUFuncGenericFunction, const int *, PyUFuncGenericFunction *);
68
+ NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndDataAndSignature \
69
+ (PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, int, const char *);
70
+ NPY_NO_EXPORT int PyUFunc_SetUsesArraysAsData \
71
+ (void **NPY_UNUSED(data), size_t NPY_UNUSED(i));
72
+ NPY_NO_EXPORT void PyUFunc_e_e \
73
+ (char **, npy_intp const *, npy_intp const *, void *);
74
+ NPY_NO_EXPORT void PyUFunc_e_e_As_f_f \
75
+ (char **, npy_intp const *, npy_intp const *, void *);
76
+ NPY_NO_EXPORT void PyUFunc_e_e_As_d_d \
77
+ (char **, npy_intp const *, npy_intp const *, void *);
78
+ NPY_NO_EXPORT void PyUFunc_ee_e \
79
+ (char **, npy_intp const *, npy_intp const *, void *);
80
+ NPY_NO_EXPORT void PyUFunc_ee_e_As_ff_f \
81
+ (char **, npy_intp const *, npy_intp const *, void *);
82
+ NPY_NO_EXPORT void PyUFunc_ee_e_As_dd_d \
83
+ (char **, npy_intp const *, npy_intp const *, void *);
84
+ NPY_NO_EXPORT int PyUFunc_DefaultTypeResolver \
85
+ (PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyObject *, PyArray_Descr **);
86
+ NPY_NO_EXPORT int PyUFunc_ValidateCasting \
87
+ (PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyArray_Descr **);
88
+ NPY_NO_EXPORT int PyUFunc_RegisterLoopForDescr \
89
+ (PyUFuncObject *, PyArray_Descr *, PyUFuncGenericFunction, PyArray_Descr **, void *);
90
+ NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndDataAndSignatureAndIdentity \
91
+ (PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, const int, const char *, PyObject *);
92
+
93
+ #else
94
+
95
+ #if defined(PY_UFUNC_UNIQUE_SYMBOL)
96
+ #define PyUFunc_API PY_UFUNC_UNIQUE_SYMBOL
97
+ #endif
98
+
99
+ #if defined(NO_IMPORT) || defined(NO_IMPORT_UFUNC)
100
+ extern void **PyUFunc_API;
101
+ #else
102
+ #if defined(PY_UFUNC_UNIQUE_SYMBOL)
103
+ void **PyUFunc_API;
104
+ #else
105
+ static void **PyUFunc_API=NULL;
106
+ #endif
107
+ #endif
108
+
109
+ #define PyUFunc_Type (*(PyTypeObject *)PyUFunc_API[0])
110
+ #define PyUFunc_FromFuncAndData \
111
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, int)) \
112
+ PyUFunc_API[1])
113
+ #define PyUFunc_RegisterLoopForType \
114
+ (*(int (*)(PyUFuncObject *, int, PyUFuncGenericFunction, const int *, void *)) \
115
+ PyUFunc_API[2])
116
+ #define PyUFunc_GenericFunction \
117
+ (*(int (*)(PyUFuncObject *NPY_UNUSED(ufunc), PyObject *NPY_UNUSED(args), PyObject *NPY_UNUSED(kwds), PyArrayObject **NPY_UNUSED(op))) \
118
+ PyUFunc_API[3])
119
+ #define PyUFunc_f_f_As_d_d \
120
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
121
+ PyUFunc_API[4])
122
+ #define PyUFunc_d_d \
123
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
124
+ PyUFunc_API[5])
125
+ #define PyUFunc_f_f \
126
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
127
+ PyUFunc_API[6])
128
+ #define PyUFunc_g_g \
129
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
130
+ PyUFunc_API[7])
131
+ #define PyUFunc_F_F_As_D_D \
132
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
133
+ PyUFunc_API[8])
134
+ #define PyUFunc_F_F \
135
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
136
+ PyUFunc_API[9])
137
+ #define PyUFunc_D_D \
138
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
139
+ PyUFunc_API[10])
140
+ #define PyUFunc_G_G \
141
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
142
+ PyUFunc_API[11])
143
+ #define PyUFunc_O_O \
144
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
145
+ PyUFunc_API[12])
146
+ #define PyUFunc_ff_f_As_dd_d \
147
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
148
+ PyUFunc_API[13])
149
+ #define PyUFunc_ff_f \
150
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
151
+ PyUFunc_API[14])
152
+ #define PyUFunc_dd_d \
153
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
154
+ PyUFunc_API[15])
155
+ #define PyUFunc_gg_g \
156
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
157
+ PyUFunc_API[16])
158
+ #define PyUFunc_FF_F_As_DD_D \
159
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
160
+ PyUFunc_API[17])
161
+ #define PyUFunc_DD_D \
162
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
163
+ PyUFunc_API[18])
164
+ #define PyUFunc_FF_F \
165
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
166
+ PyUFunc_API[19])
167
+ #define PyUFunc_GG_G \
168
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
169
+ PyUFunc_API[20])
170
+ #define PyUFunc_OO_O \
171
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
172
+ PyUFunc_API[21])
173
+ #define PyUFunc_O_O_method \
174
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
175
+ PyUFunc_API[22])
176
+ #define PyUFunc_OO_O_method \
177
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
178
+ PyUFunc_API[23])
179
+ #define PyUFunc_On_Om \
180
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
181
+ PyUFunc_API[24])
182
+ #define PyUFunc_GetPyValues \
183
+ (*(int (*)(char *, int *, int *, PyObject **)) \
184
+ PyUFunc_API[25])
185
+ #define PyUFunc_checkfperr \
186
+ (*(int (*)(int, PyObject *, int *)) \
187
+ PyUFunc_API[26])
188
+ #define PyUFunc_clearfperr \
189
+ (*(void (*)(void)) \
190
+ PyUFunc_API[27])
191
+ #define PyUFunc_getfperr \
192
+ (*(int (*)(void)) \
193
+ PyUFunc_API[28])
194
+ #define PyUFunc_handlefperr \
195
+ (*(int (*)(int, PyObject *, int, int *)) \
196
+ PyUFunc_API[29])
197
+ #define PyUFunc_ReplaceLoopBySignature \
198
+ (*(int (*)(PyUFuncObject *, PyUFuncGenericFunction, const int *, PyUFuncGenericFunction *)) \
199
+ PyUFunc_API[30])
200
+ #define PyUFunc_FromFuncAndDataAndSignature \
201
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, int, const char *)) \
202
+ PyUFunc_API[31])
203
+ #define PyUFunc_SetUsesArraysAsData \
204
+ (*(int (*)(void **NPY_UNUSED(data), size_t NPY_UNUSED(i))) \
205
+ PyUFunc_API[32])
206
+ #define PyUFunc_e_e \
207
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
208
+ PyUFunc_API[33])
209
+ #define PyUFunc_e_e_As_f_f \
210
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
211
+ PyUFunc_API[34])
212
+ #define PyUFunc_e_e_As_d_d \
213
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
214
+ PyUFunc_API[35])
215
+ #define PyUFunc_ee_e \
216
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
217
+ PyUFunc_API[36])
218
+ #define PyUFunc_ee_e_As_ff_f \
219
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
220
+ PyUFunc_API[37])
221
+ #define PyUFunc_ee_e_As_dd_d \
222
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
223
+ PyUFunc_API[38])
224
+ #define PyUFunc_DefaultTypeResolver \
225
+ (*(int (*)(PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyObject *, PyArray_Descr **)) \
226
+ PyUFunc_API[39])
227
+ #define PyUFunc_ValidateCasting \
228
+ (*(int (*)(PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyArray_Descr **)) \
229
+ PyUFunc_API[40])
230
+ #define PyUFunc_RegisterLoopForDescr \
231
+ (*(int (*)(PyUFuncObject *, PyArray_Descr *, PyUFuncGenericFunction, PyArray_Descr **, void *)) \
232
+ PyUFunc_API[41])
233
+
234
+ #if NPY_FEATURE_VERSION >= NPY_1_16_API_VERSION
235
+ #define PyUFunc_FromFuncAndDataAndSignatureAndIdentity \
236
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, const int, const char *, PyObject *)) \
237
+ PyUFunc_API[42])
238
+ #endif
239
+
240
+ static inline int
241
+ _import_umath(void)
242
+ {
243
+ PyObject *numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
244
+ PyObject *c_api = NULL;
245
+
246
+ if (numpy == NULL) {
247
+ PyErr_SetString(PyExc_ImportError,
248
+ "numpy.core._multiarray_umath failed to import");
249
+ return -1;
250
+ }
251
+ c_api = PyObject_GetAttrString(numpy, "_UFUNC_API");
252
+ Py_DECREF(numpy);
253
+ if (c_api == NULL) {
254
+ PyErr_SetString(PyExc_AttributeError, "_UFUNC_API not found");
255
+ return -1;
256
+ }
257
+
258
+ if (!PyCapsule_CheckExact(c_api)) {
259
+ PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is not PyCapsule object");
260
+ Py_DECREF(c_api);
261
+ return -1;
262
+ }
263
+ PyUFunc_API = (void **)PyCapsule_GetPointer(c_api, NULL);
264
+ Py_DECREF(c_api);
265
+ if (PyUFunc_API == NULL) {
266
+ PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is NULL pointer");
267
+ return -1;
268
+ }
269
+ return 0;
270
+ }
271
+
272
+ #define import_umath() \
273
+ do {\
274
+ UFUNC_NOFPE\
275
+ if (_import_umath() < 0) {\
276
+ PyErr_Print();\
277
+ PyErr_SetString(PyExc_ImportError,\
278
+ "numpy.core.umath failed to import");\
279
+ return NULL;\
280
+ }\
281
+ } while(0)
282
+
283
+ #define import_umath1(ret) \
284
+ do {\
285
+ UFUNC_NOFPE\
286
+ if (_import_umath() < 0) {\
287
+ PyErr_Print();\
288
+ PyErr_SetString(PyExc_ImportError,\
289
+ "numpy.core.umath failed to import");\
290
+ return ret;\
291
+ }\
292
+ } while(0)
293
+
294
+ #define import_umath2(ret, msg) \
295
+ do {\
296
+ UFUNC_NOFPE\
297
+ if (_import_umath() < 0) {\
298
+ PyErr_Print();\
299
+ PyErr_SetString(PyExc_ImportError, msg);\
300
+ return ret;\
301
+ }\
302
+ } while(0)
303
+
304
+ #define import_ufunc() \
305
+ do {\
306
+ UFUNC_NOFPE\
307
+ if (_import_umath() < 0) {\
308
+ PyErr_Print();\
309
+ PyErr_SetString(PyExc_ImportError,\
310
+ "numpy.core.umath failed to import");\
311
+ }\
312
+ } while(0)
313
+
314
+ #endif
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_
2
+ #error You should not include this header directly
3
+ #endif
4
+ /*
5
+ * Private API (here for inline)
6
+ */
7
+ static inline int
8
+ _PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter);
9
+
10
+ /*
11
+ * Update to next item of the iterator
12
+ *
13
+ * Note: this simply increment the coordinates vector, last dimension
14
+ * incremented first , i.e, for dimension 3
15
+ * ...
16
+ * -1, -1, -1
17
+ * -1, -1, 0
18
+ * -1, -1, 1
19
+ * ....
20
+ * -1, 0, -1
21
+ * -1, 0, 0
22
+ * ....
23
+ * 0, -1, -1
24
+ * 0, -1, 0
25
+ * ....
26
+ */
27
+ #define _UPDATE_COORD_ITER(c) \
28
+ wb = iter->coordinates[c] < iter->bounds[c][1]; \
29
+ if (wb) { \
30
+ iter->coordinates[c] += 1; \
31
+ return 0; \
32
+ } \
33
+ else { \
34
+ iter->coordinates[c] = iter->bounds[c][0]; \
35
+ }
36
+
37
+ static inline int
38
+ _PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter)
39
+ {
40
+ npy_intp i, wb;
41
+
42
+ for (i = iter->nd - 1; i >= 0; --i) {
43
+ _UPDATE_COORD_ITER(i)
44
+ }
45
+
46
+ return 0;
47
+ }
48
+
49
+ /*
50
+ * Version optimized for 2d arrays, manual loop unrolling
51
+ */
52
+ static inline int
53
+ _PyArrayNeighborhoodIter_IncrCoord2D(PyArrayNeighborhoodIterObject* iter)
54
+ {
55
+ npy_intp wb;
56
+
57
+ _UPDATE_COORD_ITER(1)
58
+ _UPDATE_COORD_ITER(0)
59
+
60
+ return 0;
61
+ }
62
+ #undef _UPDATE_COORD_ITER
63
+
64
+ /*
65
+ * Advance to the next neighbour
66
+ */
67
+ static inline int
68
+ PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter)
69
+ {
70
+ _PyArrayNeighborhoodIter_IncrCoord (iter);
71
+ iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates);
72
+
73
+ return 0;
74
+ }
75
+
76
+ /*
77
+ * Reset functions
78
+ */
79
+ static inline int
80
+ PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter)
81
+ {
82
+ npy_intp i;
83
+
84
+ for (i = 0; i < iter->nd; ++i) {
85
+ iter->coordinates[i] = iter->bounds[i][0];
86
+ }
87
+ iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates);
88
+
89
+ return 0;
90
+ }
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
2
+ #define NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
3
+ #define Py_ARRAYOBJECT_H
4
+
5
+ #include "ndarrayobject.h"
6
+ #include "npy_interrupt.h"
7
+
8
+ #ifdef NPY_NO_PREFIX
9
+ #include "noprefix.h"
10
+ #endif
11
+
12
+ #endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ */
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/noprefix.h ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_
2
+ #define NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_
3
+
4
+ /*
5
+ * You can directly include noprefix.h as a backward
6
+ * compatibility measure
7
+ */
8
+ #ifndef NPY_NO_PREFIX
9
+ #include "ndarrayobject.h"
10
+ #include "npy_interrupt.h"
11
+ #endif
12
+
13
+ #define SIGSETJMP NPY_SIGSETJMP
14
+ #define SIGLONGJMP NPY_SIGLONGJMP
15
+ #define SIGJMP_BUF NPY_SIGJMP_BUF
16
+
17
+ #define MAX_DIMS NPY_MAXDIMS
18
+
19
+ #define longlong npy_longlong
20
+ #define ulonglong npy_ulonglong
21
+ #define Bool npy_bool
22
+ #define longdouble npy_longdouble
23
+ #define byte npy_byte
24
+
25
+ #ifndef _BSD_SOURCE
26
+ #define ushort npy_ushort
27
+ #define uint npy_uint
28
+ #define ulong npy_ulong
29
+ #endif
30
+
31
+ #define ubyte npy_ubyte
32
+ #define ushort npy_ushort
33
+ #define uint npy_uint
34
+ #define ulong npy_ulong
35
+ #define cfloat npy_cfloat
36
+ #define cdouble npy_cdouble
37
+ #define clongdouble npy_clongdouble
38
+ #define Int8 npy_int8
39
+ #define UInt8 npy_uint8
40
+ #define Int16 npy_int16
41
+ #define UInt16 npy_uint16
42
+ #define Int32 npy_int32
43
+ #define UInt32 npy_uint32
44
+ #define Int64 npy_int64
45
+ #define UInt64 npy_uint64
46
+ #define Int128 npy_int128
47
+ #define UInt128 npy_uint128
48
+ #define Int256 npy_int256
49
+ #define UInt256 npy_uint256
50
+ #define Float16 npy_float16
51
+ #define Complex32 npy_complex32
52
+ #define Float32 npy_float32
53
+ #define Complex64 npy_complex64
54
+ #define Float64 npy_float64
55
+ #define Complex128 npy_complex128
56
+ #define Float80 npy_float80
57
+ #define Complex160 npy_complex160
58
+ #define Float96 npy_float96
59
+ #define Complex192 npy_complex192
60
+ #define Float128 npy_float128
61
+ #define Complex256 npy_complex256
62
+ #define intp npy_intp
63
+ #define uintp npy_uintp
64
+ #define datetime npy_datetime
65
+ #define timedelta npy_timedelta
66
+
67
+ #define SIZEOF_LONGLONG NPY_SIZEOF_LONGLONG
68
+ #define SIZEOF_INTP NPY_SIZEOF_INTP
69
+ #define SIZEOF_UINTP NPY_SIZEOF_UINTP
70
+ #define SIZEOF_HALF NPY_SIZEOF_HALF
71
+ #define SIZEOF_LONGDOUBLE NPY_SIZEOF_LONGDOUBLE
72
+ #define SIZEOF_DATETIME NPY_SIZEOF_DATETIME
73
+ #define SIZEOF_TIMEDELTA NPY_SIZEOF_TIMEDELTA
74
+
75
+ #define LONGLONG_FMT NPY_LONGLONG_FMT
76
+ #define ULONGLONG_FMT NPY_ULONGLONG_FMT
77
+ #define LONGLONG_SUFFIX NPY_LONGLONG_SUFFIX
78
+ #define ULONGLONG_SUFFIX NPY_ULONGLONG_SUFFIX
79
+
80
+ #define MAX_INT8 127
81
+ #define MIN_INT8 -128
82
+ #define MAX_UINT8 255
83
+ #define MAX_INT16 32767
84
+ #define MIN_INT16 -32768
85
+ #define MAX_UINT16 65535
86
+ #define MAX_INT32 2147483647
87
+ #define MIN_INT32 (-MAX_INT32 - 1)
88
+ #define MAX_UINT32 4294967295U
89
+ #define MAX_INT64 LONGLONG_SUFFIX(9223372036854775807)
90
+ #define MIN_INT64 (-MAX_INT64 - LONGLONG_SUFFIX(1))
91
+ #define MAX_UINT64 ULONGLONG_SUFFIX(18446744073709551615)
92
+ #define MAX_INT128 LONGLONG_SUFFIX(85070591730234615865843651857942052864)
93
+ #define MIN_INT128 (-MAX_INT128 - LONGLONG_SUFFIX(1))
94
+ #define MAX_UINT128 ULONGLONG_SUFFIX(170141183460469231731687303715884105728)
95
+ #define MAX_INT256 LONGLONG_SUFFIX(57896044618658097711785492504343953926634992332820282019728792003956564819967)
96
+ #define MIN_INT256 (-MAX_INT256 - LONGLONG_SUFFIX(1))
97
+ #define MAX_UINT256 ULONGLONG_SUFFIX(115792089237316195423570985008687907853269984665640564039457584007913129639935)
98
+
99
+ #define MAX_BYTE NPY_MAX_BYTE
100
+ #define MIN_BYTE NPY_MIN_BYTE
101
+ #define MAX_UBYTE NPY_MAX_UBYTE
102
+ #define MAX_SHORT NPY_MAX_SHORT
103
+ #define MIN_SHORT NPY_MIN_SHORT
104
+ #define MAX_USHORT NPY_MAX_USHORT
105
+ #define MAX_INT NPY_MAX_INT
106
+ #define MIN_INT NPY_MIN_INT
107
+ #define MAX_UINT NPY_MAX_UINT
108
+ #define MAX_LONG NPY_MAX_LONG
109
+ #define MIN_LONG NPY_MIN_LONG
110
+ #define MAX_ULONG NPY_MAX_ULONG
111
+ #define MAX_LONGLONG NPY_MAX_LONGLONG
112
+ #define MIN_LONGLONG NPY_MIN_LONGLONG
113
+ #define MAX_ULONGLONG NPY_MAX_ULONGLONG
114
+ #define MIN_DATETIME NPY_MIN_DATETIME
115
+ #define MAX_DATETIME NPY_MAX_DATETIME
116
+ #define MIN_TIMEDELTA NPY_MIN_TIMEDELTA
117
+ #define MAX_TIMEDELTA NPY_MAX_TIMEDELTA
118
+
119
+ #define BITSOF_BOOL NPY_BITSOF_BOOL
120
+ #define BITSOF_CHAR NPY_BITSOF_CHAR
121
+ #define BITSOF_SHORT NPY_BITSOF_SHORT
122
+ #define BITSOF_INT NPY_BITSOF_INT
123
+ #define BITSOF_LONG NPY_BITSOF_LONG
124
+ #define BITSOF_LONGLONG NPY_BITSOF_LONGLONG
125
+ #define BITSOF_HALF NPY_BITSOF_HALF
126
+ #define BITSOF_FLOAT NPY_BITSOF_FLOAT
127
+ #define BITSOF_DOUBLE NPY_BITSOF_DOUBLE
128
+ #define BITSOF_LONGDOUBLE NPY_BITSOF_LONGDOUBLE
129
+ #define BITSOF_DATETIME NPY_BITSOF_DATETIME
130
+ #define BITSOF_TIMEDELTA NPY_BITSOF_TIMEDELTA
131
+
132
+ #define _pya_malloc PyArray_malloc
133
+ #define _pya_free PyArray_free
134
+ #define _pya_realloc PyArray_realloc
135
+
136
+ #define BEGIN_THREADS_DEF NPY_BEGIN_THREADS_DEF
137
+ #define BEGIN_THREADS NPY_BEGIN_THREADS
138
+ #define END_THREADS NPY_END_THREADS
139
+ #define ALLOW_C_API_DEF NPY_ALLOW_C_API_DEF
140
+ #define ALLOW_C_API NPY_ALLOW_C_API
141
+ #define DISABLE_C_API NPY_DISABLE_C_API
142
+
143
+ #define PY_FAIL NPY_FAIL
144
+ #define PY_SUCCEED NPY_SUCCEED
145
+
146
+ #ifndef TRUE
147
+ #define TRUE NPY_TRUE
148
+ #endif
149
+
150
+ #ifndef FALSE
151
+ #define FALSE NPY_FALSE
152
+ #endif
153
+
154
+ #define LONGDOUBLE_FMT NPY_LONGDOUBLE_FMT
155
+
156
+ #define CONTIGUOUS NPY_CONTIGUOUS
157
+ #define C_CONTIGUOUS NPY_C_CONTIGUOUS
158
+ #define FORTRAN NPY_FORTRAN
159
+ #define F_CONTIGUOUS NPY_F_CONTIGUOUS
160
+ #define OWNDATA NPY_OWNDATA
161
+ #define FORCECAST NPY_FORCECAST
162
+ #define ENSURECOPY NPY_ENSURECOPY
163
+ #define ENSUREARRAY NPY_ENSUREARRAY
164
+ #define ELEMENTSTRIDES NPY_ELEMENTSTRIDES
165
+ #define ALIGNED NPY_ALIGNED
166
+ #define NOTSWAPPED NPY_NOTSWAPPED
167
+ #define WRITEABLE NPY_WRITEABLE
168
+ #define WRITEBACKIFCOPY NPY_ARRAY_WRITEBACKIFCOPY
169
+ #define ARR_HAS_DESCR NPY_ARR_HAS_DESCR
170
+ #define BEHAVED NPY_BEHAVED
171
+ #define BEHAVED_NS NPY_BEHAVED_NS
172
+ #define CARRAY NPY_CARRAY
173
+ #define CARRAY_RO NPY_CARRAY_RO
174
+ #define FARRAY NPY_FARRAY
175
+ #define FARRAY_RO NPY_FARRAY_RO
176
+ #define DEFAULT NPY_DEFAULT
177
+ #define IN_ARRAY NPY_IN_ARRAY
178
+ #define OUT_ARRAY NPY_OUT_ARRAY
179
+ #define INOUT_ARRAY NPY_INOUT_ARRAY
180
+ #define IN_FARRAY NPY_IN_FARRAY
181
+ #define OUT_FARRAY NPY_OUT_FARRAY
182
+ #define INOUT_FARRAY NPY_INOUT_FARRAY
183
+ #define UPDATE_ALL NPY_UPDATE_ALL
184
+
185
+ #define OWN_DATA NPY_OWNDATA
186
+ #define BEHAVED_FLAGS NPY_BEHAVED
187
+ #define BEHAVED_FLAGS_NS NPY_BEHAVED_NS
188
+ #define CARRAY_FLAGS_RO NPY_CARRAY_RO
189
+ #define CARRAY_FLAGS NPY_CARRAY
190
+ #define FARRAY_FLAGS NPY_FARRAY
191
+ #define FARRAY_FLAGS_RO NPY_FARRAY_RO
192
+ #define DEFAULT_FLAGS NPY_DEFAULT
193
+ #define UPDATE_ALL_FLAGS NPY_UPDATE_ALL_FLAGS
194
+
195
+ #ifndef MIN
196
+ #define MIN PyArray_MIN
197
+ #endif
198
+ #ifndef MAX
199
+ #define MAX PyArray_MAX
200
+ #endif
201
+ #define MAX_INTP NPY_MAX_INTP
202
+ #define MIN_INTP NPY_MIN_INTP
203
+ #define MAX_UINTP NPY_MAX_UINTP
204
+ #define INTP_FMT NPY_INTP_FMT
205
+
206
+ #ifndef PYPY_VERSION
207
+ #define REFCOUNT PyArray_REFCOUNT
208
+ #define MAX_ELSIZE NPY_MAX_ELSIZE
209
+ #endif
210
+
211
+ #endif /* NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ */
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/npy_common.h ADDED
@@ -0,0 +1,1086 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_
2
+ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_
3
+
4
+ /* need Python.h for npy_intp, npy_uintp */
5
+ #include <Python.h>
6
+
7
+ /* numpconfig.h is auto-generated */
8
+ #include "numpyconfig.h"
9
+ #ifdef HAVE_NPY_CONFIG_H
10
+ #include <npy_config.h>
11
+ #endif
12
+
13
+ /*
14
+ * using static inline modifiers when defining npy_math functions
15
+ * allows the compiler to make optimizations when possible
16
+ */
17
+ #ifndef NPY_INLINE_MATH
18
+ #if defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD
19
+ #define NPY_INLINE_MATH 1
20
+ #else
21
+ #define NPY_INLINE_MATH 0
22
+ #endif
23
+ #endif
24
+
25
+ /*
26
+ * gcc does not unroll even with -O3
27
+ * use with care, unrolling on modern cpus rarely speeds things up
28
+ */
29
+ #ifdef HAVE_ATTRIBUTE_OPTIMIZE_UNROLL_LOOPS
30
+ #define NPY_GCC_UNROLL_LOOPS \
31
+ __attribute__((optimize("unroll-loops")))
32
+ #else
33
+ #define NPY_GCC_UNROLL_LOOPS
34
+ #endif
35
+
36
+ /* highest gcc optimization level, enabled autovectorizer */
37
+ #ifdef HAVE_ATTRIBUTE_OPTIMIZE_OPT_3
38
+ #define NPY_GCC_OPT_3 __attribute__((optimize("O3")))
39
+ #else
40
+ #define NPY_GCC_OPT_3
41
+ #endif
42
+
43
+ /*
44
+ * mark an argument (starting from 1) that must not be NULL and is not checked
45
+ * DO NOT USE IF FUNCTION CHECKS FOR NULL!! the compiler will remove the check
46
+ */
47
+ #ifdef HAVE_ATTRIBUTE_NONNULL
48
+ #define NPY_GCC_NONNULL(n) __attribute__((nonnull(n)))
49
+ #else
50
+ #define NPY_GCC_NONNULL(n)
51
+ #endif
52
+
53
+ /*
54
+ * give a hint to the compiler which branch is more likely or unlikely
55
+ * to occur, e.g. rare error cases:
56
+ *
57
+ * if (NPY_UNLIKELY(failure == 0))
58
+ * return NULL;
59
+ *
60
+ * the double !! is to cast the expression (e.g. NULL) to a boolean required by
61
+ * the intrinsic
62
+ */
63
+ #ifdef HAVE___BUILTIN_EXPECT
64
+ #define NPY_LIKELY(x) __builtin_expect(!!(x), 1)
65
+ #define NPY_UNLIKELY(x) __builtin_expect(!!(x), 0)
66
+ #else
67
+ #define NPY_LIKELY(x) (x)
68
+ #define NPY_UNLIKELY(x) (x)
69
+ #endif
70
+
71
+ #ifdef HAVE___BUILTIN_PREFETCH
72
+ /* unlike _mm_prefetch also works on non-x86 */
73
+ #define NPY_PREFETCH(x, rw, loc) __builtin_prefetch((x), (rw), (loc))
74
+ #else
75
+ #ifdef NPY_HAVE_SSE
76
+ /* _MM_HINT_ET[01] (rw = 1) unsupported, only available in gcc >= 4.9 */
77
+ #define NPY_PREFETCH(x, rw, loc) _mm_prefetch((x), loc == 0 ? _MM_HINT_NTA : \
78
+ (loc == 1 ? _MM_HINT_T2 : \
79
+ (loc == 2 ? _MM_HINT_T1 : \
80
+ (loc == 3 ? _MM_HINT_T0 : -1))))
81
+ #else
82
+ #define NPY_PREFETCH(x, rw,loc)
83
+ #endif
84
+ #endif
85
+
86
+ /* `NPY_INLINE` kept for backwards compatibility; use `inline` instead */
87
+ #if defined(_MSC_VER) && !defined(__clang__)
88
+ #define NPY_INLINE __inline
89
+ /* clang included here to handle clang-cl on Windows */
90
+ #elif defined(__GNUC__) || defined(__clang__)
91
+ #if defined(__STRICT_ANSI__)
92
+ #define NPY_INLINE __inline__
93
+ #else
94
+ #define NPY_INLINE inline
95
+ #endif
96
+ #else
97
+ #define NPY_INLINE
98
+ #endif
99
+
100
+ #ifdef _MSC_VER
101
+ #define NPY_FINLINE static __forceinline
102
+ #elif defined(__GNUC__)
103
+ #define NPY_FINLINE static inline __attribute__((always_inline))
104
+ #else
105
+ #define NPY_FINLINE static
106
+ #endif
107
+
108
+ #if defined(_MSC_VER)
109
+ #define NPY_NOINLINE static __declspec(noinline)
110
+ #elif defined(__GNUC__) || defined(__clang__)
111
+ #define NPY_NOINLINE static __attribute__((noinline))
112
+ #else
113
+ #define NPY_NOINLINE static
114
+ #endif
115
+
116
+ #ifdef HAVE___THREAD
117
+ #define NPY_TLS __thread
118
+ #else
119
+ #ifdef HAVE___DECLSPEC_THREAD_
120
+ #define NPY_TLS __declspec(thread)
121
+ #else
122
+ #define NPY_TLS
123
+ #endif
124
+ #endif
125
+
126
+ #ifdef WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE
127
+ #define NPY_RETURNS_BORROWED_REF \
128
+ __attribute__((cpychecker_returns_borrowed_ref))
129
+ #else
130
+ #define NPY_RETURNS_BORROWED_REF
131
+ #endif
132
+
133
+ #ifdef WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE
134
+ #define NPY_STEALS_REF_TO_ARG(n) \
135
+ __attribute__((cpychecker_steals_reference_to_arg(n)))
136
+ #else
137
+ #define NPY_STEALS_REF_TO_ARG(n)
138
+ #endif
139
+
140
+ /* 64 bit file position support, also on win-amd64. Issue gh-2256 */
141
+ #if defined(_MSC_VER) && defined(_WIN64) && (_MSC_VER > 1400) || \
142
+ defined(__MINGW32__) || defined(__MINGW64__)
143
+ #include <io.h>
144
+
145
+ #define npy_fseek _fseeki64
146
+ #define npy_ftell _ftelli64
147
+ #define npy_lseek _lseeki64
148
+ #define npy_off_t npy_int64
149
+
150
+ #if NPY_SIZEOF_INT == 8
151
+ #define NPY_OFF_T_PYFMT "i"
152
+ #elif NPY_SIZEOF_LONG == 8
153
+ #define NPY_OFF_T_PYFMT "l"
154
+ #elif NPY_SIZEOF_LONGLONG == 8
155
+ #define NPY_OFF_T_PYFMT "L"
156
+ #else
157
+ #error Unsupported size for type off_t
158
+ #endif
159
+ #else
160
+ #ifdef HAVE_FSEEKO
161
+ #define npy_fseek fseeko
162
+ #else
163
+ #define npy_fseek fseek
164
+ #endif
165
+ #ifdef HAVE_FTELLO
166
+ #define npy_ftell ftello
167
+ #else
168
+ #define npy_ftell ftell
169
+ #endif
170
+ #include <sys/types.h>
171
+ #ifndef _WIN32
172
+ #include <unistd.h>
173
+ #endif
174
+ #define npy_lseek lseek
175
+ #define npy_off_t off_t
176
+
177
+ #if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT
178
+ #define NPY_OFF_T_PYFMT "h"
179
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT
180
+ #define NPY_OFF_T_PYFMT "i"
181
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG
182
+ #define NPY_OFF_T_PYFMT "l"
183
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG
184
+ #define NPY_OFF_T_PYFMT "L"
185
+ #else
186
+ #error Unsupported size for type off_t
187
+ #endif
188
+ #endif
189
+
190
+ /* enums for detected endianness */
191
+ enum {
192
+ NPY_CPU_UNKNOWN_ENDIAN,
193
+ NPY_CPU_LITTLE,
194
+ NPY_CPU_BIG
195
+ };
196
+
197
+ /*
198
+ * This is to typedef npy_intp to the appropriate pointer size for this
199
+ * platform. Py_intptr_t, Py_uintptr_t are defined in pyport.h.
200
+ */
201
+ typedef Py_intptr_t npy_intp;
202
+ typedef Py_uintptr_t npy_uintp;
203
+
204
+ /*
205
+ * Define sizes that were not defined in numpyconfig.h.
206
+ */
207
+ #define NPY_SIZEOF_CHAR 1
208
+ #define NPY_SIZEOF_BYTE 1
209
+ #define NPY_SIZEOF_DATETIME 8
210
+ #define NPY_SIZEOF_TIMEDELTA 8
211
+ #define NPY_SIZEOF_INTP NPY_SIZEOF_PY_INTPTR_T
212
+ #define NPY_SIZEOF_UINTP NPY_SIZEOF_PY_INTPTR_T
213
+ #define NPY_SIZEOF_HALF 2
214
+ #define NPY_SIZEOF_CFLOAT NPY_SIZEOF_COMPLEX_FLOAT
215
+ #define NPY_SIZEOF_CDOUBLE NPY_SIZEOF_COMPLEX_DOUBLE
216
+ #define NPY_SIZEOF_CLONGDOUBLE NPY_SIZEOF_COMPLEX_LONGDOUBLE
217
+
218
+ #ifdef constchar
219
+ #undef constchar
220
+ #endif
221
+
222
+ #define NPY_SSIZE_T_PYFMT "n"
223
+ #define constchar char
224
+
225
+ /* NPY_INTP_FMT Note:
226
+ * Unlike the other NPY_*_FMT macros, which are used with PyOS_snprintf,
227
+ * NPY_INTP_FMT is used with PyErr_Format and PyUnicode_FromFormat. Those
228
+ * functions use different formatting codes that are portably specified
229
+ * according to the Python documentation. See issue gh-2388.
230
+ */
231
+ #if NPY_SIZEOF_PY_INTPTR_T == NPY_SIZEOF_INT
232
+ #define NPY_INTP NPY_INT
233
+ #define NPY_UINTP NPY_UINT
234
+ #define PyIntpArrType_Type PyIntArrType_Type
235
+ #define PyUIntpArrType_Type PyUIntArrType_Type
236
+ #define NPY_MAX_INTP NPY_MAX_INT
237
+ #define NPY_MIN_INTP NPY_MIN_INT
238
+ #define NPY_MAX_UINTP NPY_MAX_UINT
239
+ #define NPY_INTP_FMT "d"
240
+ #elif NPY_SIZEOF_PY_INTPTR_T == NPY_SIZEOF_LONG
241
+ #define NPY_INTP NPY_LONG
242
+ #define NPY_UINTP NPY_ULONG
243
+ #define PyIntpArrType_Type PyLongArrType_Type
244
+ #define PyUIntpArrType_Type PyULongArrType_Type
245
+ #define NPY_MAX_INTP NPY_MAX_LONG
246
+ #define NPY_MIN_INTP NPY_MIN_LONG
247
+ #define NPY_MAX_UINTP NPY_MAX_ULONG
248
+ #define NPY_INTP_FMT "ld"
249
+ #elif defined(PY_LONG_LONG) && (NPY_SIZEOF_PY_INTPTR_T == NPY_SIZEOF_LONGLONG)
250
+ #define NPY_INTP NPY_LONGLONG
251
+ #define NPY_UINTP NPY_ULONGLONG
252
+ #define PyIntpArrType_Type PyLongLongArrType_Type
253
+ #define PyUIntpArrType_Type PyULongLongArrType_Type
254
+ #define NPY_MAX_INTP NPY_MAX_LONGLONG
255
+ #define NPY_MIN_INTP NPY_MIN_LONGLONG
256
+ #define NPY_MAX_UINTP NPY_MAX_ULONGLONG
257
+ #define NPY_INTP_FMT "lld"
258
+ #endif
259
+
260
+ /*
261
+ * We can only use C99 formats for npy_int_p if it is the same as
262
+ * intp_t, hence the condition on HAVE_UNITPTR_T
263
+ */
264
+ #if (NPY_USE_C99_FORMATS) == 1 \
265
+ && (defined HAVE_UINTPTR_T) \
266
+ && (defined HAVE_INTTYPES_H)
267
+ #include <inttypes.h>
268
+ #undef NPY_INTP_FMT
269
+ #define NPY_INTP_FMT PRIdPTR
270
+ #endif
271
+
272
+
273
+ /*
274
+ * Some platforms don't define bool, long long, or long double.
275
+ * Handle that here.
276
+ */
277
+ #define NPY_BYTE_FMT "hhd"
278
+ #define NPY_UBYTE_FMT "hhu"
279
+ #define NPY_SHORT_FMT "hd"
280
+ #define NPY_USHORT_FMT "hu"
281
+ #define NPY_INT_FMT "d"
282
+ #define NPY_UINT_FMT "u"
283
+ #define NPY_LONG_FMT "ld"
284
+ #define NPY_ULONG_FMT "lu"
285
+ #define NPY_HALF_FMT "g"
286
+ #define NPY_FLOAT_FMT "g"
287
+ #define NPY_DOUBLE_FMT "g"
288
+
289
+
290
+ #ifdef PY_LONG_LONG
291
+ typedef PY_LONG_LONG npy_longlong;
292
+ typedef unsigned PY_LONG_LONG npy_ulonglong;
293
+ # ifdef _MSC_VER
294
+ # define NPY_LONGLONG_FMT "I64d"
295
+ # define NPY_ULONGLONG_FMT "I64u"
296
+ # else
297
+ # define NPY_LONGLONG_FMT "lld"
298
+ # define NPY_ULONGLONG_FMT "llu"
299
+ # endif
300
+ # ifdef _MSC_VER
301
+ # define NPY_LONGLONG_SUFFIX(x) (x##i64)
302
+ # define NPY_ULONGLONG_SUFFIX(x) (x##Ui64)
303
+ # else
304
+ # define NPY_LONGLONG_SUFFIX(x) (x##LL)
305
+ # define NPY_ULONGLONG_SUFFIX(x) (x##ULL)
306
+ # endif
307
+ #else
308
+ typedef long npy_longlong;
309
+ typedef unsigned long npy_ulonglong;
310
+ # define NPY_LONGLONG_SUFFIX(x) (x##L)
311
+ # define NPY_ULONGLONG_SUFFIX(x) (x##UL)
312
+ #endif
313
+
314
+
315
+ typedef unsigned char npy_bool;
316
+ #define NPY_FALSE 0
317
+ #define NPY_TRUE 1
318
+ /*
319
+ * `NPY_SIZEOF_LONGDOUBLE` isn't usually equal to sizeof(long double).
320
+ * In some certain cases, it may forced to be equal to sizeof(double)
321
+ * even against the compiler implementation and the same goes for
322
+ * `complex long double`.
323
+ *
324
+ * Therefore, avoid `long double`, use `npy_longdouble` instead,
325
+ * and when it comes to standard math functions make sure of using
326
+ * the double version when `NPY_SIZEOF_LONGDOUBLE` == `NPY_SIZEOF_DOUBLE`.
327
+ * For example:
328
+ * npy_longdouble *ptr, x;
329
+ * #if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
330
+ * npy_longdouble r = modf(x, ptr);
331
+ * #else
332
+ * npy_longdouble r = modfl(x, ptr);
333
+ * #endif
334
+ *
335
+ * See https://github.com/numpy/numpy/issues/20348
336
+ */
337
+ #if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
338
+ #define NPY_LONGDOUBLE_FMT "g"
339
+ typedef double npy_longdouble;
340
+ #else
341
+ #define NPY_LONGDOUBLE_FMT "Lg"
342
+ typedef long double npy_longdouble;
343
+ #endif
344
+
345
+ #ifndef Py_USING_UNICODE
346
+ #error Must use Python with unicode enabled.
347
+ #endif
348
+
349
+
350
+ typedef signed char npy_byte;
351
+ typedef unsigned char npy_ubyte;
352
+ typedef unsigned short npy_ushort;
353
+ typedef unsigned int npy_uint;
354
+ typedef unsigned long npy_ulong;
355
+
356
+ /* These are for completeness */
357
+ typedef char npy_char;
358
+ typedef short npy_short;
359
+ typedef int npy_int;
360
+ typedef long npy_long;
361
+ typedef float npy_float;
362
+ typedef double npy_double;
363
+
364
+ typedef Py_hash_t npy_hash_t;
365
+ #define NPY_SIZEOF_HASH_T NPY_SIZEOF_INTP
366
+
367
+ /*
368
+ * Disabling C99 complex usage: a lot of C code in numpy/scipy rely on being
369
+ * able to do .real/.imag. Will have to convert code first.
370
+ */
371
+ #if 0
372
+ #if defined(NPY_USE_C99_COMPLEX) && defined(NPY_HAVE_COMPLEX_DOUBLE)
373
+ typedef complex npy_cdouble;
374
+ #else
375
+ typedef struct { double real, imag; } npy_cdouble;
376
+ #endif
377
+
378
+ #if defined(NPY_USE_C99_COMPLEX) && defined(NPY_HAVE_COMPLEX_FLOAT)
379
+ typedef complex float npy_cfloat;
380
+ #else
381
+ typedef struct { float real, imag; } npy_cfloat;
382
+ #endif
383
+
384
+ #if defined(NPY_USE_C99_COMPLEX) && defined(NPY_HAVE_COMPLEX_LONG_DOUBLE)
385
+ typedef complex long double npy_clongdouble;
386
+ #else
387
+ typedef struct {npy_longdouble real, imag;} npy_clongdouble;
388
+ #endif
389
+ #endif
390
+ #if NPY_SIZEOF_COMPLEX_DOUBLE != 2 * NPY_SIZEOF_DOUBLE
391
+ #error npy_cdouble definition is not compatible with C99 complex definition ! \
392
+ Please contact NumPy maintainers and give detailed information about your \
393
+ compiler and platform
394
+ #endif
395
+ typedef struct { double real, imag; } npy_cdouble;
396
+
397
+ #if NPY_SIZEOF_COMPLEX_FLOAT != 2 * NPY_SIZEOF_FLOAT
398
+ #error npy_cfloat definition is not compatible with C99 complex definition ! \
399
+ Please contact NumPy maintainers and give detailed information about your \
400
+ compiler and platform
401
+ #endif
402
+ typedef struct { float real, imag; } npy_cfloat;
403
+
404
+ #if NPY_SIZEOF_COMPLEX_LONGDOUBLE != 2 * NPY_SIZEOF_LONGDOUBLE
405
+ #error npy_clongdouble definition is not compatible with C99 complex definition ! \
406
+ Please contact NumPy maintainers and give detailed information about your \
407
+ compiler and platform
408
+ #endif
409
+ typedef struct { npy_longdouble real, imag; } npy_clongdouble;
410
+
411
+ /*
412
+ * numarray-style bit-width typedefs
413
+ */
414
+ #define NPY_MAX_INT8 127
415
+ #define NPY_MIN_INT8 -128
416
+ #define NPY_MAX_UINT8 255
417
+ #define NPY_MAX_INT16 32767
418
+ #define NPY_MIN_INT16 -32768
419
+ #define NPY_MAX_UINT16 65535
420
+ #define NPY_MAX_INT32 2147483647
421
+ #define NPY_MIN_INT32 (-NPY_MAX_INT32 - 1)
422
+ #define NPY_MAX_UINT32 4294967295U
423
+ #define NPY_MAX_INT64 NPY_LONGLONG_SUFFIX(9223372036854775807)
424
+ #define NPY_MIN_INT64 (-NPY_MAX_INT64 - NPY_LONGLONG_SUFFIX(1))
425
+ #define NPY_MAX_UINT64 NPY_ULONGLONG_SUFFIX(18446744073709551615)
426
+ #define NPY_MAX_INT128 NPY_LONGLONG_SUFFIX(85070591730234615865843651857942052864)
427
+ #define NPY_MIN_INT128 (-NPY_MAX_INT128 - NPY_LONGLONG_SUFFIX(1))
428
+ #define NPY_MAX_UINT128 NPY_ULONGLONG_SUFFIX(170141183460469231731687303715884105728)
429
+ #define NPY_MAX_INT256 NPY_LONGLONG_SUFFIX(57896044618658097711785492504343953926634992332820282019728792003956564819967)
430
+ #define NPY_MIN_INT256 (-NPY_MAX_INT256 - NPY_LONGLONG_SUFFIX(1))
431
+ #define NPY_MAX_UINT256 NPY_ULONGLONG_SUFFIX(115792089237316195423570985008687907853269984665640564039457584007913129639935)
432
+ #define NPY_MIN_DATETIME NPY_MIN_INT64
433
+ #define NPY_MAX_DATETIME NPY_MAX_INT64
434
+ #define NPY_MIN_TIMEDELTA NPY_MIN_INT64
435
+ #define NPY_MAX_TIMEDELTA NPY_MAX_INT64
436
+
437
+ /* Need to find the number of bits for each type and
438
+ make definitions accordingly.
439
+
440
+ C states that sizeof(char) == 1 by definition
441
+
442
+ So, just using the sizeof keyword won't help.
443
+
444
+ It also looks like Python itself uses sizeof(char) quite a
445
+ bit, which by definition should be 1 all the time.
446
+
447
+ Idea: Make Use of CHAR_BIT which should tell us how many
448
+ BITS per CHARACTER
449
+ */
450
+
451
+ /* Include platform definitions -- These are in the C89/90 standard */
452
+ #include <limits.h>
453
+ #define NPY_MAX_BYTE SCHAR_MAX
454
+ #define NPY_MIN_BYTE SCHAR_MIN
455
+ #define NPY_MAX_UBYTE UCHAR_MAX
456
+ #define NPY_MAX_SHORT SHRT_MAX
457
+ #define NPY_MIN_SHORT SHRT_MIN
458
+ #define NPY_MAX_USHORT USHRT_MAX
459
+ #define NPY_MAX_INT INT_MAX
460
+ #ifndef INT_MIN
461
+ #define INT_MIN (-INT_MAX - 1)
462
+ #endif
463
+ #define NPY_MIN_INT INT_MIN
464
+ #define NPY_MAX_UINT UINT_MAX
465
+ #define NPY_MAX_LONG LONG_MAX
466
+ #define NPY_MIN_LONG LONG_MIN
467
+ #define NPY_MAX_ULONG ULONG_MAX
468
+
469
+ #define NPY_BITSOF_BOOL (sizeof(npy_bool) * CHAR_BIT)
470
+ #define NPY_BITSOF_CHAR CHAR_BIT
471
+ #define NPY_BITSOF_BYTE (NPY_SIZEOF_BYTE * CHAR_BIT)
472
+ #define NPY_BITSOF_SHORT (NPY_SIZEOF_SHORT * CHAR_BIT)
473
+ #define NPY_BITSOF_INT (NPY_SIZEOF_INT * CHAR_BIT)
474
+ #define NPY_BITSOF_LONG (NPY_SIZEOF_LONG * CHAR_BIT)
475
+ #define NPY_BITSOF_LONGLONG (NPY_SIZEOF_LONGLONG * CHAR_BIT)
476
+ #define NPY_BITSOF_INTP (NPY_SIZEOF_INTP * CHAR_BIT)
477
+ #define NPY_BITSOF_HALF (NPY_SIZEOF_HALF * CHAR_BIT)
478
+ #define NPY_BITSOF_FLOAT (NPY_SIZEOF_FLOAT * CHAR_BIT)
479
+ #define NPY_BITSOF_DOUBLE (NPY_SIZEOF_DOUBLE * CHAR_BIT)
480
+ #define NPY_BITSOF_LONGDOUBLE (NPY_SIZEOF_LONGDOUBLE * CHAR_BIT)
481
+ #define NPY_BITSOF_CFLOAT (NPY_SIZEOF_CFLOAT * CHAR_BIT)
482
+ #define NPY_BITSOF_CDOUBLE (NPY_SIZEOF_CDOUBLE * CHAR_BIT)
483
+ #define NPY_BITSOF_CLONGDOUBLE (NPY_SIZEOF_CLONGDOUBLE * CHAR_BIT)
484
+ #define NPY_BITSOF_DATETIME (NPY_SIZEOF_DATETIME * CHAR_BIT)
485
+ #define NPY_BITSOF_TIMEDELTA (NPY_SIZEOF_TIMEDELTA * CHAR_BIT)
486
+
487
+ #if NPY_BITSOF_LONG == 8
488
+ #define NPY_INT8 NPY_LONG
489
+ #define NPY_UINT8 NPY_ULONG
490
+ typedef long npy_int8;
491
+ typedef unsigned long npy_uint8;
492
+ #define PyInt8ScalarObject PyLongScalarObject
493
+ #define PyInt8ArrType_Type PyLongArrType_Type
494
+ #define PyUInt8ScalarObject PyULongScalarObject
495
+ #define PyUInt8ArrType_Type PyULongArrType_Type
496
+ #define NPY_INT8_FMT NPY_LONG_FMT
497
+ #define NPY_UINT8_FMT NPY_ULONG_FMT
498
+ #elif NPY_BITSOF_LONG == 16
499
+ #define NPY_INT16 NPY_LONG
500
+ #define NPY_UINT16 NPY_ULONG
501
+ typedef long npy_int16;
502
+ typedef unsigned long npy_uint16;
503
+ #define PyInt16ScalarObject PyLongScalarObject
504
+ #define PyInt16ArrType_Type PyLongArrType_Type
505
+ #define PyUInt16ScalarObject PyULongScalarObject
506
+ #define PyUInt16ArrType_Type PyULongArrType_Type
507
+ #define NPY_INT16_FMT NPY_LONG_FMT
508
+ #define NPY_UINT16_FMT NPY_ULONG_FMT
509
+ #elif NPY_BITSOF_LONG == 32
510
+ #define NPY_INT32 NPY_LONG
511
+ #define NPY_UINT32 NPY_ULONG
512
+ typedef long npy_int32;
513
+ typedef unsigned long npy_uint32;
514
+ typedef unsigned long npy_ucs4;
515
+ #define PyInt32ScalarObject PyLongScalarObject
516
+ #define PyInt32ArrType_Type PyLongArrType_Type
517
+ #define PyUInt32ScalarObject PyULongScalarObject
518
+ #define PyUInt32ArrType_Type PyULongArrType_Type
519
+ #define NPY_INT32_FMT NPY_LONG_FMT
520
+ #define NPY_UINT32_FMT NPY_ULONG_FMT
521
+ #elif NPY_BITSOF_LONG == 64
522
+ #define NPY_INT64 NPY_LONG
523
+ #define NPY_UINT64 NPY_ULONG
524
+ typedef long npy_int64;
525
+ typedef unsigned long npy_uint64;
526
+ #define PyInt64ScalarObject PyLongScalarObject
527
+ #define PyInt64ArrType_Type PyLongArrType_Type
528
+ #define PyUInt64ScalarObject PyULongScalarObject
529
+ #define PyUInt64ArrType_Type PyULongArrType_Type
530
+ #define NPY_INT64_FMT NPY_LONG_FMT
531
+ #define NPY_UINT64_FMT NPY_ULONG_FMT
532
+ #define MyPyLong_FromInt64 PyLong_FromLong
533
+ #define MyPyLong_AsInt64 PyLong_AsLong
534
+ #elif NPY_BITSOF_LONG == 128
535
+ #define NPY_INT128 NPY_LONG
536
+ #define NPY_UINT128 NPY_ULONG
537
+ typedef long npy_int128;
538
+ typedef unsigned long npy_uint128;
539
+ #define PyInt128ScalarObject PyLongScalarObject
540
+ #define PyInt128ArrType_Type PyLongArrType_Type
541
+ #define PyUInt128ScalarObject PyULongScalarObject
542
+ #define PyUInt128ArrType_Type PyULongArrType_Type
543
+ #define NPY_INT128_FMT NPY_LONG_FMT
544
+ #define NPY_UINT128_FMT NPY_ULONG_FMT
545
+ #endif
546
+
547
+ #if NPY_BITSOF_LONGLONG == 8
548
+ # ifndef NPY_INT8
549
+ # define NPY_INT8 NPY_LONGLONG
550
+ # define NPY_UINT8 NPY_ULONGLONG
551
+ typedef npy_longlong npy_int8;
552
+ typedef npy_ulonglong npy_uint8;
553
+ # define PyInt8ScalarObject PyLongLongScalarObject
554
+ # define PyInt8ArrType_Type PyLongLongArrType_Type
555
+ # define PyUInt8ScalarObject PyULongLongScalarObject
556
+ # define PyUInt8ArrType_Type PyULongLongArrType_Type
557
+ #define NPY_INT8_FMT NPY_LONGLONG_FMT
558
+ #define NPY_UINT8_FMT NPY_ULONGLONG_FMT
559
+ # endif
560
+ # define NPY_MAX_LONGLONG NPY_MAX_INT8
561
+ # define NPY_MIN_LONGLONG NPY_MIN_INT8
562
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT8
563
+ #elif NPY_BITSOF_LONGLONG == 16
564
+ # ifndef NPY_INT16
565
+ # define NPY_INT16 NPY_LONGLONG
566
+ # define NPY_UINT16 NPY_ULONGLONG
567
+ typedef npy_longlong npy_int16;
568
+ typedef npy_ulonglong npy_uint16;
569
+ # define PyInt16ScalarObject PyLongLongScalarObject
570
+ # define PyInt16ArrType_Type PyLongLongArrType_Type
571
+ # define PyUInt16ScalarObject PyULongLongScalarObject
572
+ # define PyUInt16ArrType_Type PyULongLongArrType_Type
573
+ #define NPY_INT16_FMT NPY_LONGLONG_FMT
574
+ #define NPY_UINT16_FMT NPY_ULONGLONG_FMT
575
+ # endif
576
+ # define NPY_MAX_LONGLONG NPY_MAX_INT16
577
+ # define NPY_MIN_LONGLONG NPY_MIN_INT16
578
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT16
579
+ #elif NPY_BITSOF_LONGLONG == 32
580
+ # ifndef NPY_INT32
581
+ # define NPY_INT32 NPY_LONGLONG
582
+ # define NPY_UINT32 NPY_ULONGLONG
583
+ typedef npy_longlong npy_int32;
584
+ typedef npy_ulonglong npy_uint32;
585
+ typedef npy_ulonglong npy_ucs4;
586
+ # define PyInt32ScalarObject PyLongLongScalarObject
587
+ # define PyInt32ArrType_Type PyLongLongArrType_Type
588
+ # define PyUInt32ScalarObject PyULongLongScalarObject
589
+ # define PyUInt32ArrType_Type PyULongLongArrType_Type
590
+ #define NPY_INT32_FMT NPY_LONGLONG_FMT
591
+ #define NPY_UINT32_FMT NPY_ULONGLONG_FMT
592
+ # endif
593
+ # define NPY_MAX_LONGLONG NPY_MAX_INT32
594
+ # define NPY_MIN_LONGLONG NPY_MIN_INT32
595
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT32
596
+ #elif NPY_BITSOF_LONGLONG == 64
597
+ # ifndef NPY_INT64
598
+ # define NPY_INT64 NPY_LONGLONG
599
+ # define NPY_UINT64 NPY_ULONGLONG
600
+ typedef npy_longlong npy_int64;
601
+ typedef npy_ulonglong npy_uint64;
602
+ # define PyInt64ScalarObject PyLongLongScalarObject
603
+ # define PyInt64ArrType_Type PyLongLongArrType_Type
604
+ # define PyUInt64ScalarObject PyULongLongScalarObject
605
+ # define PyUInt64ArrType_Type PyULongLongArrType_Type
606
+ #define NPY_INT64_FMT NPY_LONGLONG_FMT
607
+ #define NPY_UINT64_FMT NPY_ULONGLONG_FMT
608
+ # define MyPyLong_FromInt64 PyLong_FromLongLong
609
+ # define MyPyLong_AsInt64 PyLong_AsLongLong
610
+ # endif
611
+ # define NPY_MAX_LONGLONG NPY_MAX_INT64
612
+ # define NPY_MIN_LONGLONG NPY_MIN_INT64
613
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT64
614
+ #elif NPY_BITSOF_LONGLONG == 128
615
+ # ifndef NPY_INT128
616
+ # define NPY_INT128 NPY_LONGLONG
617
+ # define NPY_UINT128 NPY_ULONGLONG
618
+ typedef npy_longlong npy_int128;
619
+ typedef npy_ulonglong npy_uint128;
620
+ # define PyInt128ScalarObject PyLongLongScalarObject
621
+ # define PyInt128ArrType_Type PyLongLongArrType_Type
622
+ # define PyUInt128ScalarObject PyULongLongScalarObject
623
+ # define PyUInt128ArrType_Type PyULongLongArrType_Type
624
+ #define NPY_INT128_FMT NPY_LONGLONG_FMT
625
+ #define NPY_UINT128_FMT NPY_ULONGLONG_FMT
626
+ # endif
627
+ # define NPY_MAX_LONGLONG NPY_MAX_INT128
628
+ # define NPY_MIN_LONGLONG NPY_MIN_INT128
629
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT128
630
+ #elif NPY_BITSOF_LONGLONG == 256
631
+ # define NPY_INT256 NPY_LONGLONG
632
+ # define NPY_UINT256 NPY_ULONGLONG
633
+ typedef npy_longlong npy_int256;
634
+ typedef npy_ulonglong npy_uint256;
635
+ # define PyInt256ScalarObject PyLongLongScalarObject
636
+ # define PyInt256ArrType_Type PyLongLongArrType_Type
637
+ # define PyUInt256ScalarObject PyULongLongScalarObject
638
+ # define PyUInt256ArrType_Type PyULongLongArrType_Type
639
+ #define NPY_INT256_FMT NPY_LONGLONG_FMT
640
+ #define NPY_UINT256_FMT NPY_ULONGLONG_FMT
641
+ # define NPY_MAX_LONGLONG NPY_MAX_INT256
642
+ # define NPY_MIN_LONGLONG NPY_MIN_INT256
643
+ # define NPY_MAX_ULONGLONG NPY_MAX_UINT256
644
+ #endif
645
+
646
+ #if NPY_BITSOF_INT == 8
647
+ #ifndef NPY_INT8
648
+ #define NPY_INT8 NPY_INT
649
+ #define NPY_UINT8 NPY_UINT
650
+ typedef int npy_int8;
651
+ typedef unsigned int npy_uint8;
652
+ # define PyInt8ScalarObject PyIntScalarObject
653
+ # define PyInt8ArrType_Type PyIntArrType_Type
654
+ # define PyUInt8ScalarObject PyUIntScalarObject
655
+ # define PyUInt8ArrType_Type PyUIntArrType_Type
656
+ #define NPY_INT8_FMT NPY_INT_FMT
657
+ #define NPY_UINT8_FMT NPY_UINT_FMT
658
+ #endif
659
+ #elif NPY_BITSOF_INT == 16
660
+ #ifndef NPY_INT16
661
+ #define NPY_INT16 NPY_INT
662
+ #define NPY_UINT16 NPY_UINT
663
+ typedef int npy_int16;
664
+ typedef unsigned int npy_uint16;
665
+ # define PyInt16ScalarObject PyIntScalarObject
666
+ # define PyInt16ArrType_Type PyIntArrType_Type
667
+ # define PyUInt16ScalarObject PyIntUScalarObject
668
+ # define PyUInt16ArrType_Type PyIntUArrType_Type
669
+ #define NPY_INT16_FMT NPY_INT_FMT
670
+ #define NPY_UINT16_FMT NPY_UINT_FMT
671
+ #endif
672
+ #elif NPY_BITSOF_INT == 32
673
+ #ifndef NPY_INT32
674
+ #define NPY_INT32 NPY_INT
675
+ #define NPY_UINT32 NPY_UINT
676
+ typedef int npy_int32;
677
+ typedef unsigned int npy_uint32;
678
+ typedef unsigned int npy_ucs4;
679
+ # define PyInt32ScalarObject PyIntScalarObject
680
+ # define PyInt32ArrType_Type PyIntArrType_Type
681
+ # define PyUInt32ScalarObject PyUIntScalarObject
682
+ # define PyUInt32ArrType_Type PyUIntArrType_Type
683
+ #define NPY_INT32_FMT NPY_INT_FMT
684
+ #define NPY_UINT32_FMT NPY_UINT_FMT
685
+ #endif
686
+ #elif NPY_BITSOF_INT == 64
687
+ #ifndef NPY_INT64
688
+ #define NPY_INT64 NPY_INT
689
+ #define NPY_UINT64 NPY_UINT
690
+ typedef int npy_int64;
691
+ typedef unsigned int npy_uint64;
692
+ # define PyInt64ScalarObject PyIntScalarObject
693
+ # define PyInt64ArrType_Type PyIntArrType_Type
694
+ # define PyUInt64ScalarObject PyUIntScalarObject
695
+ # define PyUInt64ArrType_Type PyUIntArrType_Type
696
+ #define NPY_INT64_FMT NPY_INT_FMT
697
+ #define NPY_UINT64_FMT NPY_UINT_FMT
698
+ # define MyPyLong_FromInt64 PyLong_FromLong
699
+ # define MyPyLong_AsInt64 PyLong_AsLong
700
+ #endif
701
+ #elif NPY_BITSOF_INT == 128
702
+ #ifndef NPY_INT128
703
+ #define NPY_INT128 NPY_INT
704
+ #define NPY_UINT128 NPY_UINT
705
+ typedef int npy_int128;
706
+ typedef unsigned int npy_uint128;
707
+ # define PyInt128ScalarObject PyIntScalarObject
708
+ # define PyInt128ArrType_Type PyIntArrType_Type
709
+ # define PyUInt128ScalarObject PyUIntScalarObject
710
+ # define PyUInt128ArrType_Type PyUIntArrType_Type
711
+ #define NPY_INT128_FMT NPY_INT_FMT
712
+ #define NPY_UINT128_FMT NPY_UINT_FMT
713
+ #endif
714
+ #endif
715
+
716
+ #if NPY_BITSOF_SHORT == 8
717
+ #ifndef NPY_INT8
718
+ #define NPY_INT8 NPY_SHORT
719
+ #define NPY_UINT8 NPY_USHORT
720
+ typedef short npy_int8;
721
+ typedef unsigned short npy_uint8;
722
+ # define PyInt8ScalarObject PyShortScalarObject
723
+ # define PyInt8ArrType_Type PyShortArrType_Type
724
+ # define PyUInt8ScalarObject PyUShortScalarObject
725
+ # define PyUInt8ArrType_Type PyUShortArrType_Type
726
+ #define NPY_INT8_FMT NPY_SHORT_FMT
727
+ #define NPY_UINT8_FMT NPY_USHORT_FMT
728
+ #endif
729
+ #elif NPY_BITSOF_SHORT == 16
730
+ #ifndef NPY_INT16
731
+ #define NPY_INT16 NPY_SHORT
732
+ #define NPY_UINT16 NPY_USHORT
733
+ typedef short npy_int16;
734
+ typedef unsigned short npy_uint16;
735
+ # define PyInt16ScalarObject PyShortScalarObject
736
+ # define PyInt16ArrType_Type PyShortArrType_Type
737
+ # define PyUInt16ScalarObject PyUShortScalarObject
738
+ # define PyUInt16ArrType_Type PyUShortArrType_Type
739
+ #define NPY_INT16_FMT NPY_SHORT_FMT
740
+ #define NPY_UINT16_FMT NPY_USHORT_FMT
741
+ #endif
742
+ #elif NPY_BITSOF_SHORT == 32
743
+ #ifndef NPY_INT32
744
+ #define NPY_INT32 NPY_SHORT
745
+ #define NPY_UINT32 NPY_USHORT
746
+ typedef short npy_int32;
747
+ typedef unsigned short npy_uint32;
748
+ typedef unsigned short npy_ucs4;
749
+ # define PyInt32ScalarObject PyShortScalarObject
750
+ # define PyInt32ArrType_Type PyShortArrType_Type
751
+ # define PyUInt32ScalarObject PyUShortScalarObject
752
+ # define PyUInt32ArrType_Type PyUShortArrType_Type
753
+ #define NPY_INT32_FMT NPY_SHORT_FMT
754
+ #define NPY_UINT32_FMT NPY_USHORT_FMT
755
+ #endif
756
+ #elif NPY_BITSOF_SHORT == 64
757
+ #ifndef NPY_INT64
758
+ #define NPY_INT64 NPY_SHORT
759
+ #define NPY_UINT64 NPY_USHORT
760
+ typedef short npy_int64;
761
+ typedef unsigned short npy_uint64;
762
+ # define PyInt64ScalarObject PyShortScalarObject
763
+ # define PyInt64ArrType_Type PyShortArrType_Type
764
+ # define PyUInt64ScalarObject PyUShortScalarObject
765
+ # define PyUInt64ArrType_Type PyUShortArrType_Type
766
+ #define NPY_INT64_FMT NPY_SHORT_FMT
767
+ #define NPY_UINT64_FMT NPY_USHORT_FMT
768
+ # define MyPyLong_FromInt64 PyLong_FromLong
769
+ # define MyPyLong_AsInt64 PyLong_AsLong
770
+ #endif
771
+ #elif NPY_BITSOF_SHORT == 128
772
+ #ifndef NPY_INT128
773
+ #define NPY_INT128 NPY_SHORT
774
+ #define NPY_UINT128 NPY_USHORT
775
+ typedef short npy_int128;
776
+ typedef unsigned short npy_uint128;
777
+ # define PyInt128ScalarObject PyShortScalarObject
778
+ # define PyInt128ArrType_Type PyShortArrType_Type
779
+ # define PyUInt128ScalarObject PyUShortScalarObject
780
+ # define PyUInt128ArrType_Type PyUShortArrType_Type
781
+ #define NPY_INT128_FMT NPY_SHORT_FMT
782
+ #define NPY_UINT128_FMT NPY_USHORT_FMT
783
+ #endif
784
+ #endif
785
+
786
+
787
+ #if NPY_BITSOF_CHAR == 8
788
+ #ifndef NPY_INT8
789
+ #define NPY_INT8 NPY_BYTE
790
+ #define NPY_UINT8 NPY_UBYTE
791
+ typedef signed char npy_int8;
792
+ typedef unsigned char npy_uint8;
793
+ # define PyInt8ScalarObject PyByteScalarObject
794
+ # define PyInt8ArrType_Type PyByteArrType_Type
795
+ # define PyUInt8ScalarObject PyUByteScalarObject
796
+ # define PyUInt8ArrType_Type PyUByteArrType_Type
797
+ #define NPY_INT8_FMT NPY_BYTE_FMT
798
+ #define NPY_UINT8_FMT NPY_UBYTE_FMT
799
+ #endif
800
+ #elif NPY_BITSOF_CHAR == 16
801
+ #ifndef NPY_INT16
802
+ #define NPY_INT16 NPY_BYTE
803
+ #define NPY_UINT16 NPY_UBYTE
804
+ typedef signed char npy_int16;
805
+ typedef unsigned char npy_uint16;
806
+ # define PyInt16ScalarObject PyByteScalarObject
807
+ # define PyInt16ArrType_Type PyByteArrType_Type
808
+ # define PyUInt16ScalarObject PyUByteScalarObject
809
+ # define PyUInt16ArrType_Type PyUByteArrType_Type
810
+ #define NPY_INT16_FMT NPY_BYTE_FMT
811
+ #define NPY_UINT16_FMT NPY_UBYTE_FMT
812
+ #endif
813
+ #elif NPY_BITSOF_CHAR == 32
814
+ #ifndef NPY_INT32
815
+ #define NPY_INT32 NPY_BYTE
816
+ #define NPY_UINT32 NPY_UBYTE
817
+ typedef signed char npy_int32;
818
+ typedef unsigned char npy_uint32;
819
+ typedef unsigned char npy_ucs4;
820
+ # define PyInt32ScalarObject PyByteScalarObject
821
+ # define PyInt32ArrType_Type PyByteArrType_Type
822
+ # define PyUInt32ScalarObject PyUByteScalarObject
823
+ # define PyUInt32ArrType_Type PyUByteArrType_Type
824
+ #define NPY_INT32_FMT NPY_BYTE_FMT
825
+ #define NPY_UINT32_FMT NPY_UBYTE_FMT
826
+ #endif
827
+ #elif NPY_BITSOF_CHAR == 64
828
+ #ifndef NPY_INT64
829
+ #define NPY_INT64 NPY_BYTE
830
+ #define NPY_UINT64 NPY_UBYTE
831
+ typedef signed char npy_int64;
832
+ typedef unsigned char npy_uint64;
833
+ # define PyInt64ScalarObject PyByteScalarObject
834
+ # define PyInt64ArrType_Type PyByteArrType_Type
835
+ # define PyUInt64ScalarObject PyUByteScalarObject
836
+ # define PyUInt64ArrType_Type PyUByteArrType_Type
837
+ #define NPY_INT64_FMT NPY_BYTE_FMT
838
+ #define NPY_UINT64_FMT NPY_UBYTE_FMT
839
+ # define MyPyLong_FromInt64 PyLong_FromLong
840
+ # define MyPyLong_AsInt64 PyLong_AsLong
841
+ #endif
842
+ #elif NPY_BITSOF_CHAR == 128
843
+ #ifndef NPY_INT128
844
+ #define NPY_INT128 NPY_BYTE
845
+ #define NPY_UINT128 NPY_UBYTE
846
+ typedef signed char npy_int128;
847
+ typedef unsigned char npy_uint128;
848
+ # define PyInt128ScalarObject PyByteScalarObject
849
+ # define PyInt128ArrType_Type PyByteArrType_Type
850
+ # define PyUInt128ScalarObject PyUByteScalarObject
851
+ # define PyUInt128ArrType_Type PyUByteArrType_Type
852
+ #define NPY_INT128_FMT NPY_BYTE_FMT
853
+ #define NPY_UINT128_FMT NPY_UBYTE_FMT
854
+ #endif
855
+ #endif
856
+
857
+
858
+
859
+ #if NPY_BITSOF_DOUBLE == 32
860
+ #ifndef NPY_FLOAT32
861
+ #define NPY_FLOAT32 NPY_DOUBLE
862
+ #define NPY_COMPLEX64 NPY_CDOUBLE
863
+ typedef double npy_float32;
864
+ typedef npy_cdouble npy_complex64;
865
+ # define PyFloat32ScalarObject PyDoubleScalarObject
866
+ # define PyComplex64ScalarObject PyCDoubleScalarObject
867
+ # define PyFloat32ArrType_Type PyDoubleArrType_Type
868
+ # define PyComplex64ArrType_Type PyCDoubleArrType_Type
869
+ #define NPY_FLOAT32_FMT NPY_DOUBLE_FMT
870
+ #define NPY_COMPLEX64_FMT NPY_CDOUBLE_FMT
871
+ #endif
872
+ #elif NPY_BITSOF_DOUBLE == 64
873
+ #ifndef NPY_FLOAT64
874
+ #define NPY_FLOAT64 NPY_DOUBLE
875
+ #define NPY_COMPLEX128 NPY_CDOUBLE
876
+ typedef double npy_float64;
877
+ typedef npy_cdouble npy_complex128;
878
+ # define PyFloat64ScalarObject PyDoubleScalarObject
879
+ # define PyComplex128ScalarObject PyCDoubleScalarObject
880
+ # define PyFloat64ArrType_Type PyDoubleArrType_Type
881
+ # define PyComplex128ArrType_Type PyCDoubleArrType_Type
882
+ #define NPY_FLOAT64_FMT NPY_DOUBLE_FMT
883
+ #define NPY_COMPLEX128_FMT NPY_CDOUBLE_FMT
884
+ #endif
885
+ #elif NPY_BITSOF_DOUBLE == 80
886
+ #ifndef NPY_FLOAT80
887
+ #define NPY_FLOAT80 NPY_DOUBLE
888
+ #define NPY_COMPLEX160 NPY_CDOUBLE
889
+ typedef double npy_float80;
890
+ typedef npy_cdouble npy_complex160;
891
+ # define PyFloat80ScalarObject PyDoubleScalarObject
892
+ # define PyComplex160ScalarObject PyCDoubleScalarObject
893
+ # define PyFloat80ArrType_Type PyDoubleArrType_Type
894
+ # define PyComplex160ArrType_Type PyCDoubleArrType_Type
895
+ #define NPY_FLOAT80_FMT NPY_DOUBLE_FMT
896
+ #define NPY_COMPLEX160_FMT NPY_CDOUBLE_FMT
897
+ #endif
898
+ #elif NPY_BITSOF_DOUBLE == 96
899
+ #ifndef NPY_FLOAT96
900
+ #define NPY_FLOAT96 NPY_DOUBLE
901
+ #define NPY_COMPLEX192 NPY_CDOUBLE
902
+ typedef double npy_float96;
903
+ typedef npy_cdouble npy_complex192;
904
+ # define PyFloat96ScalarObject PyDoubleScalarObject
905
+ # define PyComplex192ScalarObject PyCDoubleScalarObject
906
+ # define PyFloat96ArrType_Type PyDoubleArrType_Type
907
+ # define PyComplex192ArrType_Type PyCDoubleArrType_Type
908
+ #define NPY_FLOAT96_FMT NPY_DOUBLE_FMT
909
+ #define NPY_COMPLEX192_FMT NPY_CDOUBLE_FMT
910
+ #endif
911
+ #elif NPY_BITSOF_DOUBLE == 128
912
+ #ifndef NPY_FLOAT128
913
+ #define NPY_FLOAT128 NPY_DOUBLE
914
+ #define NPY_COMPLEX256 NPY_CDOUBLE
915
+ typedef double npy_float128;
916
+ typedef npy_cdouble npy_complex256;
917
+ # define PyFloat128ScalarObject PyDoubleScalarObject
918
+ # define PyComplex256ScalarObject PyCDoubleScalarObject
919
+ # define PyFloat128ArrType_Type PyDoubleArrType_Type
920
+ # define PyComplex256ArrType_Type PyCDoubleArrType_Type
921
+ #define NPY_FLOAT128_FMT NPY_DOUBLE_FMT
922
+ #define NPY_COMPLEX256_FMT NPY_CDOUBLE_FMT
923
+ #endif
924
+ #endif
925
+
926
+
927
+
928
+ #if NPY_BITSOF_FLOAT == 32
929
+ #ifndef NPY_FLOAT32
930
+ #define NPY_FLOAT32 NPY_FLOAT
931
+ #define NPY_COMPLEX64 NPY_CFLOAT
932
+ typedef float npy_float32;
933
+ typedef npy_cfloat npy_complex64;
934
+ # define PyFloat32ScalarObject PyFloatScalarObject
935
+ # define PyComplex64ScalarObject PyCFloatScalarObject
936
+ # define PyFloat32ArrType_Type PyFloatArrType_Type
937
+ # define PyComplex64ArrType_Type PyCFloatArrType_Type
938
+ #define NPY_FLOAT32_FMT NPY_FLOAT_FMT
939
+ #define NPY_COMPLEX64_FMT NPY_CFLOAT_FMT
940
+ #endif
941
+ #elif NPY_BITSOF_FLOAT == 64
942
+ #ifndef NPY_FLOAT64
943
+ #define NPY_FLOAT64 NPY_FLOAT
944
+ #define NPY_COMPLEX128 NPY_CFLOAT
945
+ typedef float npy_float64;
946
+ typedef npy_cfloat npy_complex128;
947
+ # define PyFloat64ScalarObject PyFloatScalarObject
948
+ # define PyComplex128ScalarObject PyCFloatScalarObject
949
+ # define PyFloat64ArrType_Type PyFloatArrType_Type
950
+ # define PyComplex128ArrType_Type PyCFloatArrType_Type
951
+ #define NPY_FLOAT64_FMT NPY_FLOAT_FMT
952
+ #define NPY_COMPLEX128_FMT NPY_CFLOAT_FMT
953
+ #endif
954
+ #elif NPY_BITSOF_FLOAT == 80
955
+ #ifndef NPY_FLOAT80
956
+ #define NPY_FLOAT80 NPY_FLOAT
957
+ #define NPY_COMPLEX160 NPY_CFLOAT
958
+ typedef float npy_float80;
959
+ typedef npy_cfloat npy_complex160;
960
+ # define PyFloat80ScalarObject PyFloatScalarObject
961
+ # define PyComplex160ScalarObject PyCFloatScalarObject
962
+ # define PyFloat80ArrType_Type PyFloatArrType_Type
963
+ # define PyComplex160ArrType_Type PyCFloatArrType_Type
964
+ #define NPY_FLOAT80_FMT NPY_FLOAT_FMT
965
+ #define NPY_COMPLEX160_FMT NPY_CFLOAT_FMT
966
+ #endif
967
+ #elif NPY_BITSOF_FLOAT == 96
968
+ #ifndef NPY_FLOAT96
969
+ #define NPY_FLOAT96 NPY_FLOAT
970
+ #define NPY_COMPLEX192 NPY_CFLOAT
971
+ typedef float npy_float96;
972
+ typedef npy_cfloat npy_complex192;
973
+ # define PyFloat96ScalarObject PyFloatScalarObject
974
+ # define PyComplex192ScalarObject PyCFloatScalarObject
975
+ # define PyFloat96ArrType_Type PyFloatArrType_Type
976
+ # define PyComplex192ArrType_Type PyCFloatArrType_Type
977
+ #define NPY_FLOAT96_FMT NPY_FLOAT_FMT
978
+ #define NPY_COMPLEX192_FMT NPY_CFLOAT_FMT
979
+ #endif
980
+ #elif NPY_BITSOF_FLOAT == 128
981
+ #ifndef NPY_FLOAT128
982
+ #define NPY_FLOAT128 NPY_FLOAT
983
+ #define NPY_COMPLEX256 NPY_CFLOAT
984
+ typedef float npy_float128;
985
+ typedef npy_cfloat npy_complex256;
986
+ # define PyFloat128ScalarObject PyFloatScalarObject
987
+ # define PyComplex256ScalarObject PyCFloatScalarObject
988
+ # define PyFloat128ArrType_Type PyFloatArrType_Type
989
+ # define PyComplex256ArrType_Type PyCFloatArrType_Type
990
+ #define NPY_FLOAT128_FMT NPY_FLOAT_FMT
991
+ #define NPY_COMPLEX256_FMT NPY_CFLOAT_FMT
992
+ #endif
993
+ #endif
994
+
995
+ /* half/float16 isn't a floating-point type in C */
996
+ #define NPY_FLOAT16 NPY_HALF
997
+ typedef npy_uint16 npy_half;
998
+ typedef npy_half npy_float16;
999
+
1000
+ #if NPY_BITSOF_LONGDOUBLE == 32
1001
+ #ifndef NPY_FLOAT32
1002
+ #define NPY_FLOAT32 NPY_LONGDOUBLE
1003
+ #define NPY_COMPLEX64 NPY_CLONGDOUBLE
1004
+ typedef npy_longdouble npy_float32;
1005
+ typedef npy_clongdouble npy_complex64;
1006
+ # define PyFloat32ScalarObject PyLongDoubleScalarObject
1007
+ # define PyComplex64ScalarObject PyCLongDoubleScalarObject
1008
+ # define PyFloat32ArrType_Type PyLongDoubleArrType_Type
1009
+ # define PyComplex64ArrType_Type PyCLongDoubleArrType_Type
1010
+ #define NPY_FLOAT32_FMT NPY_LONGDOUBLE_FMT
1011
+ #define NPY_COMPLEX64_FMT NPY_CLONGDOUBLE_FMT
1012
+ #endif
1013
+ #elif NPY_BITSOF_LONGDOUBLE == 64
1014
+ #ifndef NPY_FLOAT64
1015
+ #define NPY_FLOAT64 NPY_LONGDOUBLE
1016
+ #define NPY_COMPLEX128 NPY_CLONGDOUBLE
1017
+ typedef npy_longdouble npy_float64;
1018
+ typedef npy_clongdouble npy_complex128;
1019
+ # define PyFloat64ScalarObject PyLongDoubleScalarObject
1020
+ # define PyComplex128ScalarObject PyCLongDoubleScalarObject
1021
+ # define PyFloat64ArrType_Type PyLongDoubleArrType_Type
1022
+ # define PyComplex128ArrType_Type PyCLongDoubleArrType_Type
1023
+ #define NPY_FLOAT64_FMT NPY_LONGDOUBLE_FMT
1024
+ #define NPY_COMPLEX128_FMT NPY_CLONGDOUBLE_FMT
1025
+ #endif
1026
+ #elif NPY_BITSOF_LONGDOUBLE == 80
1027
+ #ifndef NPY_FLOAT80
1028
+ #define NPY_FLOAT80 NPY_LONGDOUBLE
1029
+ #define NPY_COMPLEX160 NPY_CLONGDOUBLE
1030
+ typedef npy_longdouble npy_float80;
1031
+ typedef npy_clongdouble npy_complex160;
1032
+ # define PyFloat80ScalarObject PyLongDoubleScalarObject
1033
+ # define PyComplex160ScalarObject PyCLongDoubleScalarObject
1034
+ # define PyFloat80ArrType_Type PyLongDoubleArrType_Type
1035
+ # define PyComplex160ArrType_Type PyCLongDoubleArrType_Type
1036
+ #define NPY_FLOAT80_FMT NPY_LONGDOUBLE_FMT
1037
+ #define NPY_COMPLEX160_FMT NPY_CLONGDOUBLE_FMT
1038
+ #endif
1039
+ #elif NPY_BITSOF_LONGDOUBLE == 96
1040
+ #ifndef NPY_FLOAT96
1041
+ #define NPY_FLOAT96 NPY_LONGDOUBLE
1042
+ #define NPY_COMPLEX192 NPY_CLONGDOUBLE
1043
+ typedef npy_longdouble npy_float96;
1044
+ typedef npy_clongdouble npy_complex192;
1045
+ # define PyFloat96ScalarObject PyLongDoubleScalarObject
1046
+ # define PyComplex192ScalarObject PyCLongDoubleScalarObject
1047
+ # define PyFloat96ArrType_Type PyLongDoubleArrType_Type
1048
+ # define PyComplex192ArrType_Type PyCLongDoubleArrType_Type
1049
+ #define NPY_FLOAT96_FMT NPY_LONGDOUBLE_FMT
1050
+ #define NPY_COMPLEX192_FMT NPY_CLONGDOUBLE_FMT
1051
+ #endif
1052
+ #elif NPY_BITSOF_LONGDOUBLE == 128
1053
+ #ifndef NPY_FLOAT128
1054
+ #define NPY_FLOAT128 NPY_LONGDOUBLE
1055
+ #define NPY_COMPLEX256 NPY_CLONGDOUBLE
1056
+ typedef npy_longdouble npy_float128;
1057
+ typedef npy_clongdouble npy_complex256;
1058
+ # define PyFloat128ScalarObject PyLongDoubleScalarObject
1059
+ # define PyComplex256ScalarObject PyCLongDoubleScalarObject
1060
+ # define PyFloat128ArrType_Type PyLongDoubleArrType_Type
1061
+ # define PyComplex256ArrType_Type PyCLongDoubleArrType_Type
1062
+ #define NPY_FLOAT128_FMT NPY_LONGDOUBLE_FMT
1063
+ #define NPY_COMPLEX256_FMT NPY_CLONGDOUBLE_FMT
1064
+ #endif
1065
+ #elif NPY_BITSOF_LONGDOUBLE == 256
1066
+ #define NPY_FLOAT256 NPY_LONGDOUBLE
1067
+ #define NPY_COMPLEX512 NPY_CLONGDOUBLE
1068
+ typedef npy_longdouble npy_float256;
1069
+ typedef npy_clongdouble npy_complex512;
1070
+ # define PyFloat256ScalarObject PyLongDoubleScalarObject
1071
+ # define PyComplex512ScalarObject PyCLongDoubleScalarObject
1072
+ # define PyFloat256ArrType_Type PyLongDoubleArrType_Type
1073
+ # define PyComplex512ArrType_Type PyCLongDoubleArrType_Type
1074
+ #define NPY_FLOAT256_FMT NPY_LONGDOUBLE_FMT
1075
+ #define NPY_COMPLEX512_FMT NPY_CLONGDOUBLE_FMT
1076
+ #endif
1077
+
1078
+ /* datetime typedefs */
1079
+ typedef npy_int64 npy_timedelta;
1080
+ typedef npy_int64 npy_datetime;
1081
+ #define NPY_DATETIME_FMT NPY_INT64_FMT
1082
+ #define NPY_TIMEDELTA_FMT NPY_INT64_FMT
1083
+
1084
+ /* End of typedefs for numarray style bit-width names */
1085
+
1086
+ #endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_ */
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/old_defines.h ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_ */
evalkit_eagle/lib/python3.10/site-packages/numpy/core/include/numpy/utils.h ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_
2
+ #define NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_
3
+
4
+ #ifndef __COMP_NPY_UNUSED
5
+ #if defined(__GNUC__)
6
+ #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
7
+ #elif defined(__ICC)
8
+ #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
9
+ #elif defined(__clang__)
10
+ #define __COMP_NPY_UNUSED __attribute__ ((unused))
11
+ #else
12
+ #define __COMP_NPY_UNUSED
13
+ #endif
14
+ #endif
15
+
16
+ #if defined(__GNUC__) || defined(__ICC) || defined(__clang__)
17
+ #define NPY_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
18
+ #elif defined(_MSC_VER)
19
+ #define NPY_DECL_ALIGNED(x) __declspec(align(x))
20
+ #else
21
+ #define NPY_DECL_ALIGNED(x)
22
+ #endif
23
+
24
+ /* Use this to tag a variable as not used. It will remove unused variable
25
+ * warning on support platforms (see __COM_NPY_UNUSED) and mangle the variable
26
+ * to avoid accidental use */
27
+ #define NPY_UNUSED(x) __NPY_UNUSED_TAGGED ## x __COMP_NPY_UNUSED
28
+ #define NPY_EXPAND(x) x
29
+
30
+ #define NPY_STRINGIFY(x) #x
31
+ #define NPY_TOSTRING(x) NPY_STRINGIFY(x)
32
+
33
+ #define NPY_CAT__(a, b) a ## b
34
+ #define NPY_CAT_(a, b) NPY_CAT__(a, b)
35
+ #define NPY_CAT(a, b) NPY_CAT_(a, b)
36
+
37
+ #endif /* NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ */
evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/libnpymath.a ADDED
Binary file (94 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/npy-pkg-config/mlib.ini ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [meta]
2
+ Name = mlib
3
+ Description = Math library used with this version of numpy
4
+ Version = 1.0
5
+
6
+ [default]
7
+ Libs=-lm
8
+ Cflags=
9
+
10
+ [msvc]
11
+ Libs=m.lib
12
+ Cflags=
evalkit_eagle/lib/python3.10/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [meta]
2
+ Name=npymath
3
+ Description=Portable, core math library implementing C99 standard
4
+ Version=0.1
5
+
6
+ [variables]
7
+ pkgname=numpy.core
8
+ prefix=${pkgdir}
9
+ libdir=${prefix}/lib
10
+ includedir=${prefix}/include
11
+
12
+ [default]
13
+ Libs=-L${libdir} -lnpymath
14
+ Cflags=-I${includedir}
15
+ Requires=mlib
16
+
17
+ [msvc]
18
+ Libs=/LIBPATH:${libdir} npymath.lib
19
+ Cflags=/INCLUDE:${includedir}
20
+ Requires=mlib
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (175 Bytes). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_array_coercion.cpython-310.pyc ADDED
Binary file (28.9 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_arrayprint.cpython-310.pyc ADDED
Binary file (37.1 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_casting_floatingpoint_errors.cpython-310.pyc ADDED
Binary file (5.53 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_cpu_features.cpython-310.pyc ADDED
Binary file (13.1 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_custom_dtypes.cpython-310.pyc ADDED
Binary file (8.58 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_dtype.cpython-310.pyc ADDED
Binary file (64 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_getlimits.cpython-310.pyc ADDED
Binary file (7.31 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_half.cpython-310.pyc ADDED
Binary file (16.8 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_indexing.cpython-310.pyc ADDED
Binary file (46.4 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_memmap.cpython-310.pyc ADDED
Binary file (7.73 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_numpy_2_0_compat.cpython-310.pyc ADDED
Binary file (2.21 kB). View file
 
evalkit_eagle/lib/python3.10/site-packages/numpy/core/tests/__pycache__/test_protocols.cpython-310.pyc ADDED
Binary file (2.41 kB). View file