zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
 
=================
NumPy Ufunc C-API
=================
::
 
  PyObject *
  PyUFunc_FromFuncAndData(PyUFuncGenericFunction *func, void
                          **data, char *types, int ntypes, int nin, int
                          nout, int identity, const char *name, const
                          char *doc, int unused)
 
 
::
 
  int
  PyUFunc_RegisterLoopForType(PyUFuncObject *ufunc, int
                              usertype, PyUFuncGenericFunction
                              function, const int *arg_types, void
                              *data)
 
 
::
 
  int
  PyUFunc_GenericFunction(PyUFuncObject *NPY_UNUSED(ufunc) , PyObject
                          *NPY_UNUSED(args) , PyObject *NPY_UNUSED(kwds)
                          , PyArrayObject **NPY_UNUSED(op) )
 
 
::
 
  void
  PyUFunc_f_f_As_d_d(char **args, npy_intp const *dimensions, npy_intp
                     const *steps, void *func)
 
 
::
 
  void
  PyUFunc_d_d(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_f_f(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_g_g(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_F_F_As_D_D(char **args, npy_intp const *dimensions, npy_intp
                     const *steps, void *func)
 
 
::
 
  void
  PyUFunc_F_F(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_D_D(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_G_G(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_O_O(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_ff_f_As_dd_d(char **args, npy_intp const *dimensions, npy_intp
                       const *steps, void *func)
 
 
::
 
  void
  PyUFunc_ff_f(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_dd_d(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_gg_g(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_FF_F_As_DD_D(char **args, npy_intp const *dimensions, npy_intp
                       const *steps, void *func)
 
 
::
 
  void
  PyUFunc_DD_D(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_FF_F(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_GG_G(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_OO_O(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_O_O_method(char **args, npy_intp const *dimensions, npy_intp
                     const *steps, void *func)
 
 
::
 
  void
  PyUFunc_OO_O_method(char **args, npy_intp const *dimensions, npy_intp
                      const *steps, void *func)
 
 
::
 
  void
  PyUFunc_On_Om(char **args, npy_intp const *dimensions, npy_intp const
                *steps, void *func)
 
 
::
 
  int
  PyUFunc_GetPyValues(char *name, int *bufsize, int *errmask, PyObject
                      **errobj)
 
 
On return, if errobj is populated with a non-NULL value, the caller
owns a new reference to errobj.
 
::
 
  int
  PyUFunc_checkfperr(int errmask, PyObject *errobj, int *first)
 
 
::
 
  void
  PyUFunc_clearfperr()
 
 
::
 
  int
  PyUFunc_getfperr(void )
 
 
::
 
  int
  PyUFunc_handlefperr(int errmask, PyObject *errobj, int retstatus, int
                      *first)
 
 
::
 
  int
  PyUFunc_ReplaceLoopBySignature(PyUFuncObject
                                 *func, PyUFuncGenericFunction
                                 newfunc, const int
                                 *signature, PyUFuncGenericFunction
                                 *oldfunc)
 
 
::
 
  PyObject *
  PyUFunc_FromFuncAndDataAndSignature(PyUFuncGenericFunction *func, void
                                      **data, char *types, int
                                      ntypes, int nin, int nout, int
                                      identity, const char *name, const
                                      char *doc, int unused, const char
                                      *signature)
 
 
::
 
  int
  PyUFunc_SetUsesArraysAsData(void **NPY_UNUSED(data) , size_t
                              NPY_UNUSED(i) )
 
 
::
 
  void
  PyUFunc_e_e(char **args, npy_intp const *dimensions, npy_intp const
              *steps, void *func)
 
 
::
 
  void
  PyUFunc_e_e_As_f_f(char **args, npy_intp const *dimensions, npy_intp
                     const *steps, void *func)
 
 
::
 
  void
  PyUFunc_e_e_As_d_d(char **args, npy_intp const *dimensions, npy_intp
                     const *steps, void *func)
 
 
::
 
  void
  PyUFunc_ee_e(char **args, npy_intp const *dimensions, npy_intp const
               *steps, void *func)
 
 
::
 
  void
  PyUFunc_ee_e_As_ff_f(char **args, npy_intp const *dimensions, npy_intp
                       const *steps, void *func)
 
 
::
 
  void
  PyUFunc_ee_e_As_dd_d(char **args, npy_intp const *dimensions, npy_intp
                       const *steps, void *func)
 
 
::
 
  int
  PyUFunc_DefaultTypeResolver(PyUFuncObject *ufunc, NPY_CASTING
                              casting, PyArrayObject
                              **operands, PyObject
                              *type_tup, PyArray_Descr **out_dtypes)
 
 
This function applies the default type resolution rules
for the provided ufunc.
 
Returns 0 on success, -1 on error.
 
::
 
  int
  PyUFunc_ValidateCasting(PyUFuncObject *ufunc, NPY_CASTING
                          casting, PyArrayObject
                          **operands, PyArray_Descr **dtypes)
 
 
Validates that the input operands can be cast to
the input types, and the output types can be cast to
the output operands where provided.
 
Returns 0 on success, -1 (with exception raised) on validation failure.
 
::
 
  int
  PyUFunc_RegisterLoopForDescr(PyUFuncObject *ufunc, PyArray_Descr
                               *user_dtype, PyUFuncGenericFunction
                               function, PyArray_Descr
                               **arg_dtypes, void *data)
 
 
::
 
  PyObject *
  PyUFunc_FromFuncAndDataAndSignatureAndIdentity(PyUFuncGenericFunction
                                                 *func, void
                                                 **data, char
                                                 *types, int ntypes, int
                                                 nin, int nout, int
                                                 identity, const char
                                                 *name, const char
                                                 *doc, const int
                                                 unused, const char
                                                 *signature, PyObject
                                                 *identity_value)