~ubuntu-branches/ubuntu/lucid/python-scipy/lucid

« back to all changes in this revision

Viewing changes to Lib/special/ufunc_extras.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-07 14:12:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070107141212-mm0ebkh5b37hcpzn
* Remove build dependency on python-numpy-dev.
* python-scipy: Depend on python-numpy instead of python-numpy-dev.
* Package builds on other archs than i386. Closes: #402783.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define NO_IMPORT_ARRAY
1
2
#include "ufunc_extras.h"
2
3
 
3
 
extern void PyUFunc_f_ff_As_d_dd(char **args, int *dimensions, int *steps, void *func) {
 
4
extern void PyUFunc_f_ff_As_d_dd(char **args, intp *dimensions, intp *steps, void *func) {
4
5
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
5
6
        char *ip1=args[0], *op1=args[1], *op2=args[2];
6
 
        int n=dimensions[0];
 
7
        intp n=dimensions[0];
7
8
        double to1, to2;
8
9
        
9
10
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2) {
13
14
        }
14
15
}
15
16
 
16
 
extern void PyUFunc_d_dd(char **args, int *dimensions, int *steps, void *func) {
 
17
extern void PyUFunc_d_dd(char **args, intp *dimensions, intp *steps, void *func) {
17
18
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
18
19
        char *ip1=args[0], *op1=args[1], *op2=args[2];
19
 
        int n=dimensions[0];
 
20
        intp n=dimensions[0];
20
21
        
21
22
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2) {
22
23
                ((IntFunc_d_dd *)func)(*(double *)ip1, (double *)op1, (double *)op2);
23
24
        }
24
25
}
25
26
 
26
 
extern void PyUFunc_F_FF_As_D_DD(char **args, int *dimensions, int *steps, void *func) {
 
27
extern void PyUFunc_F_FF_As_D_DD(char **args, intp *dimensions, intp *steps, void *func) {
27
28
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
28
29
        char *ip1=args[0], *op1=args[1], *op2=args[2];
29
 
        int n=dimensions[0];
 
30
        intp n=dimensions[0];
30
31
        Py_complex from1;
31
32
        Py_complex to1, to2;
32
33
        
40
41
        }
41
42
}
42
43
 
43
 
extern void PyUFunc_D_DD(char **args, int *dimensions, int *steps, void *func) {
 
44
extern void PyUFunc_D_DD(char **args, intp *dimensions, intp *steps, void *func) {
44
45
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
45
46
        char *ip1=args[0], *op1=args[1], *op2=args[2];
46
 
        int n=dimensions[0];
 
47
        intp n=dimensions[0];
47
48
        Py_complex from1, to1, to2;
48
49
        
49
50
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2) {
58
59
 
59
60
}
60
61
 
61
 
extern void PyUFunc_f_FF_As_d_DD(char **args, int *dimensions, int *steps, void *func) {
 
62
extern void PyUFunc_f_FF_As_d_DD(char **args, intp *dimensions, intp *steps, void *func) {
62
63
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
63
64
        char *ip1=args[0], *op1=args[1], *op2=args[2];
64
 
        int n=dimensions[0];
 
65
        intp n=dimensions[0];
65
66
        Py_complex to1, to2;
66
67
        
67
68
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2) {
73
74
        }
74
75
}
75
76
 
76
 
extern void PyUFunc_d_DD(char **args, int *dimensions, int *steps, void *func) {
 
77
extern void PyUFunc_d_DD(char **args, intp *dimensions, intp *steps, void *func) {
77
78
        int i, is1=steps[0],os1=steps[1],os2=steps[2];
78
79
        char *ip1=args[0], *op1=args[1], *op2=args[2];
79
 
        int n=dimensions[0];
 
80
        intp n=dimensions[0];
80
81
        Py_complex to1, to2;
81
82
        
82
83
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2) {
91
92
 
92
93
 
93
94
 
94
 
extern void PyUFunc_f_ffff_As_d_dddd(char **args, int *dimensions, int *steps, void *func) {
 
95
extern void PyUFunc_f_ffff_As_d_dddd(char **args, intp *dimensions, intp *steps, void *func) {
95
96
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
96
97
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
97
 
        int n=dimensions[0];
 
98
        intp n=dimensions[0];
98
99
        double to1, to2, to3, to4;
99
100
        
100
101
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
107
108
}
108
109
 
109
110
 
110
 
extern void PyUFunc_d_dddd(char **args, int *dimensions, int *steps, void *func) {
 
111
extern void PyUFunc_d_dddd(char **args, intp *dimensions, intp *steps, void *func) {
111
112
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
112
113
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
113
 
        int n=dimensions[0];
 
114
        intp n=dimensions[0];
114
115
        
115
116
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
116
117
                ((IntFunc_d_dddd *)func)(*(double *)ip1, (double *)op1, (double *)op2, (double *)op3, (double *)op4);
117
118
        }
118
119
}
119
120
 
120
 
extern void PyUFunc_F_FFFF_As_D_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
121
extern void PyUFunc_F_FFFF_As_D_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
121
122
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
122
123
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
123
 
        int n=dimensions[0];
 
124
        intp n=dimensions[0];
124
125
        Py_complex from1;
125
126
        Py_complex to1, to2, to3, to4;
126
127
        
138
139
        }
139
140
}
140
141
 
141
 
extern void PyUFunc_f_ffff_As_D_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
142
extern void PyUFunc_f_ffff_As_D_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
142
143
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
143
144
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
144
 
        int n=dimensions[0];
 
145
        intp n=dimensions[0];
145
146
        Py_complex from1;
146
147
        Py_complex to1, to2, to3, to4;
147
148
        
156
157
}
157
158
 
158
159
 
159
 
extern void PyUFunc_d_dddd_As_D_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
160
extern void PyUFunc_d_dddd_As_D_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
160
161
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
161
162
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
162
 
        int n=dimensions[0];
 
163
        intp n=dimensions[0];
163
164
        Py_complex from1;
164
165
        Py_complex to1, to2, to3, to4;
165
166
        
173
174
        }
174
175
}
175
176
 
176
 
extern void PyUFunc_D_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
177
extern void PyUFunc_D_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
177
178
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
178
179
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
179
 
        int n=dimensions[0];
 
180
        intp n=dimensions[0];
180
181
        Py_complex from1;
181
182
        Py_complex to1, to2, to3, to4;
182
183
        
195
196
}
196
197
 
197
198
 
198
 
extern void PyUFunc_f_FFFF_As_d_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
199
extern void PyUFunc_f_FFFF_As_d_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
199
200
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
200
201
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
201
 
        int n=dimensions[0];
 
202
        intp n=dimensions[0];
202
203
        Py_complex to1, to2, to3, to4;
203
204
        
204
205
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
214
215
        }
215
216
}
216
217
 
217
 
extern void PyUFunc_d_DDDD(char **args, int *dimensions, int *steps, void *func) {
 
218
extern void PyUFunc_d_DDDD(char **args, intp *dimensions, intp *steps, void *func) {
218
219
        int i, is1=steps[0],os1=steps[1],os2=steps[2],os3=steps[3],os4=steps[4];
219
220
        char *ip1=args[0], *op1=args[1], *op2=args[2], *op3=args[3], *op4=args[4];
220
 
        int n=dimensions[0];
 
221
        intp n=dimensions[0];
221
222
        Py_complex to1, to2, to3, to4;
222
223
        
223
224
        for(i=0; i<n; i++, ip1+=is1, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
233
234
        }
234
235
}
235
236
 
236
 
extern void PyUFunc_ff_ff_As_dd_dd(char **args, int *dimensions, int *steps, void *func) {
 
237
extern void PyUFunc_ff_ff_As_dd_dd(char **args, intp *dimensions, intp *steps, void *func) {
237
238
        int i, is1=steps[0],is2=steps[1],os1=steps[2],os2=steps[3];
238
239
        char *ip1=args[0], *ip2=args[1], *op1=args[2], *op2=args[3];
239
 
        int n=dimensions[0];
 
240
        intp n=dimensions[0];
240
241
        double to1, to2;
241
242
        
242
243
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op1+=os1, op2+=os2) {
246
247
        }
247
248
}
248
249
 
249
 
extern void PyUFunc_dd_dd(char **args, int *dimensions, int *steps, void *func) {
 
250
extern void PyUFunc_dd_dd(char **args, intp *dimensions, intp *steps, void *func) {
250
251
        int i, is1=steps[0],is2=steps[1],os1=steps[2],os2=steps[3];
251
252
        char *ip1=args[0], *ip2=args[1], *op1=args[2], *op2=args[3];
252
 
        int n=dimensions[0];
 
253
        intp n=dimensions[0];
253
254
        
254
255
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op1+=os1, op2+=os2) {
255
256
                ((IntFunc_dd_dd *)func)(*(double *)ip1, *(double *)ip2, (double *)op1, (double *)op2);
257
258
}
258
259
 
259
260
 
260
 
extern void PyUFunc_ff_ffff_As_dd_dddd(char **args, int *dimensions, int *steps, void *func) {
 
261
extern void PyUFunc_ff_ffff_As_dd_dddd(char **args, intp *dimensions, intp *steps, void *func) {
261
262
        int i, is1=steps[0],is2=steps[1],os1=steps[2],os2=steps[3],os3=steps[4],os4=steps[5];
262
263
        char *ip1=args[0], *ip2=args[1], *op1=args[2], *op2=args[3], *op3=args[4], *op4=args[5];
263
 
        int n=dimensions[0];
 
264
        intp n=dimensions[0];
264
265
        double to1, to2, to3, to4;
265
266
        
266
267
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
272
273
        }
273
274
}
274
275
 
275
 
extern void PyUFunc_dd_dddd(char **args, int *dimensions, int *steps, void *func) {
 
276
extern void PyUFunc_dd_dddd(char **args, intp *dimensions, intp *steps, void *func) {
276
277
        int i, is1=steps[0],is2=steps[1],os1=steps[2],os2=steps[3],os3=steps[4],os4=steps[5];
277
278
        char *ip1=args[0], *ip2=args[1], *op1=args[2], *op2=args[3], *op3=args[4], *op4=args[5];
278
 
        int n=dimensions[0];
 
279
        intp n=dimensions[0];
279
280
        
280
281
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op1+=os1, op2+=os2, op3+=os3, op4+=os4) {
281
282
                ((IntFunc_dd_dddd *)func)(*(double *)ip1, *(double *)ip2, (double *)op1, (double *)op2, (double *)op3, (double *)op4);
283
284
}
284
285
 
285
286
 
286
 
extern void PyUFunc_fff_f_As_ddd_d(char **args, int *dimensions, int *steps, void *func) {
 
287
extern void PyUFunc_fff_f_As_ddd_d(char **args, intp *dimensions, intp *steps, void *func) {
287
288
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
288
289
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op=args[3];
289
 
        int n=dimensions[0];
 
290
        intp n=dimensions[0];
290
291
        
291
292
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op+=os) {
292
293
                *(float *)op = (float)((DoubleFunc_ddd_d *)func)((double)*(float *)ip1, (double)*(float *)ip2, (double)*(float *)ip3);
293
294
        }
294
295
}
295
296
 
296
 
extern void PyUFunc_ddd_d(char **args, int *dimensions, int *steps, void *func) {
 
297
extern void PyUFunc_ddd_d(char **args, intp *dimensions, intp *steps, void *func) {
297
298
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
298
299
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op=args[3];
299
 
        int n=dimensions[0];
 
300
        intp n=dimensions[0];
300
301
        
301
302
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op+=os) {
302
303
                *(double *)op = ((DoubleFunc_ddd_d *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3);
303
304
        }
304
305
}
305
306
 
306
 
extern void PyUFunc_fff_ff_As_ddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
307
extern void PyUFunc_fff_ff_As_ddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
307
308
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os1=steps[3],os2=steps[4];
308
309
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op1=args[3], *op2=args[4];
309
 
        int n=dimensions[0];
 
310
        intp n=dimensions[0];
310
311
        double to1, to2;
311
312
        
312
313
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op1+=os1, op2+=os2) {
316
317
        }
317
318
}
318
319
 
319
 
extern void PyUFunc_ddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
320
extern void PyUFunc_ddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
320
321
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os1=steps[3],os2=steps[4];
321
322
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op1=args[3], *op2=args[4];
322
 
        int n=dimensions[0];
 
323
        intp n=dimensions[0];
323
324
        
324
325
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op1+=os1, op2+=os2) {
325
326
          ((IntFunc_ddd_dd *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3, (double *)op1, (double *)op2);
327
328
}
328
329
 
329
330
 
330
 
extern void PyUFunc_ff_f_As_id_d(char **args, int *dimensions, int *steps, void *func) {
 
331
extern void PyUFunc_ff_f_As_id_d(char **args, intp *dimensions, intp *steps, void *func) {
331
332
        int i, is1=steps[0],is2=steps[1],os=steps[2];
332
333
        char *ip1=args[0], *ip2=args[1], *op=args[2];
333
 
        int n=dimensions[0];
 
334
        intp n=dimensions[0];
334
335
 
335
336
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op+=os) {
336
337
                *(float *)op = (float)((DoubleFunc_id_d *)func)((int)*(float *)ip1, (double)*(float *)ip2);
337
338
        }
338
339
}
339
340
 
340
 
extern void PyUFunc_dd_d_As_id_d(char **args, int *dimensions, int *steps, void *func) {
 
341
extern void PyUFunc_dd_d_As_id_d(char **args, intp *dimensions, intp *steps, void *func) {
341
342
        int i, is1=steps[0],is2=steps[1],os=steps[2];
342
343
        char *ip1=args[0], *ip2=args[1], *op=args[2];
343
 
        int n=dimensions[0];
 
344
        intp n=dimensions[0];
344
345
 
345
346
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, op+=os) {
346
347
                *(double *)op = ((DoubleFunc_id_d *)func)((int)*(double *)ip1, *(double *)ip2);
348
349
}
349
350
 
350
351
 
351
 
extern void PyUFunc_ff_f_As_dD_D(char **args, int *dimensions, int *steps, void *func) {
 
352
extern void PyUFunc_ff_f_As_dD_D(char **args, intp *dimensions, intp *steps, void *func) {
352
353
        int i, is1=steps[0],is2=steps[1],os=steps[2];
353
354
        char *ip1=args[0], *ip2=args[1], *op=args[2];
354
 
        int n=dimensions[0];
 
355
        intp n=dimensions[0];
355
356
        Py_complex from1;
356
357
        Py_complex to1;
357
358
 
362
363
        }
363
364
}
364
365
 
365
 
extern void PyUFunc_dd_d_As_dD_D(char **args, int *dimensions, int *steps, void *func) {
 
366
extern void PyUFunc_dd_d_As_dD_D(char **args, intp *dimensions, intp *steps, void *func) {
366
367
        int i, is1=steps[0],is2=steps[1],os=steps[2];
367
368
        char *ip1=args[0], *ip2=args[1], *op=args[2];
368
 
        int n=dimensions[0];
 
369
        intp n=dimensions[0];
369
370
        Py_complex from1;
370
371
        Py_complex to1;
371
372
 
377
378
}
378
379
 
379
380
 
380
 
extern void PyUFunc_fF_F_As_dD_D(char **args, int *dimensions, int *steps, void *func) {
 
381
extern void PyUFunc_fF_F_As_dD_D(char **args, intp *dimensions, intp *steps, void *func) {
381
382
        int i, is1=steps[0],is2=steps[1],os=steps[2];
382
383
        char *ip1=args[0], *ip2=args[1], *op=args[2];
383
 
        int n=dimensions[0];
 
384
        intp n=dimensions[0];
384
385
        Py_complex from1;
385
386
        Py_complex to1;
386
387
 
392
393
        }
393
394
}
394
395
 
395
 
extern void PyUFunc_dD_D(char **args, int *dimensions, int *steps, void *func) {
 
396
extern void PyUFunc_dD_D(char **args, intp *dimensions, intp *steps, void *func) {
396
397
        int i, is1=steps[0],is2=steps[1],os=steps[2];
397
398
        char *ip1=args[0], *ip2=args[1], *op=args[2];
398
 
        int n=dimensions[0];
 
399
        intp n=dimensions[0];
399
400
        Py_complex from1;
400
401
        Py_complex to1;
401
402
 
408
409
}
409
410
 
410
411
 
411
 
extern void PyUFunc_ffF_F_As_ddD_D(char **args, int *dimensions, int *steps, void *func) {
 
412
extern void PyUFunc_ffF_F_As_ddD_D(char **args, intp *dimensions, intp *steps, void *func) {
412
413
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
413
414
        char *ip1=args[0],*ip2=args[1],*ip3=args[2],*op=args[3];
414
 
        int n=dimensions[0];
 
415
        intp n=dimensions[0];
415
416
        Py_complex from1;
416
417
        Py_complex to1;
417
418
 
423
424
        }
424
425
}
425
426
 
426
 
extern void PyUFunc_ddD_D(char **args, int *dimensions, int *steps, void *func) {
 
427
extern void PyUFunc_ddD_D(char **args, intp *dimensions, intp *steps, void *func) {
427
428
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
428
429
        char *ip1=args[0],*ip2=args[1],*ip3=args[2],*op=args[3];
429
 
        int n=dimensions[0];
 
430
        intp n=dimensions[0];
430
431
        Py_complex from1;
431
432
        Py_complex to1;
432
433
 
439
440
}
440
441
 
441
442
 
442
 
extern void PyUFunc_fffF_F_As_dddD_D(char **args, int *dimensions, int *steps, void *func) {
 
443
extern void PyUFunc_fffF_F_As_dddD_D(char **args, intp *dimensions, intp *steps, void *func) {
443
444
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os=steps[4];
444
445
        char *ip1=args[0],*ip2=args[1],*ip3=args[2],*ip4=args[3],*op=args[4];
445
 
        int n=dimensions[0];
 
446
        intp n=dimensions[0];
446
447
        Py_complex from1;
447
448
        Py_complex to1;
448
449
 
454
455
        }
455
456
}
456
457
 
457
 
extern void PyUFunc_dddD_D(char **args, int *dimensions, int *steps, void *func) {
 
458
extern void PyUFunc_dddD_D(char **args, intp *dimensions, intp *steps, void *func) {
458
459
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os=steps[4];
459
460
        char *ip1=args[0],*ip2=args[1],*ip3=args[2],*ip4=args[3],*op=args[4];
460
 
        int n=dimensions[0];
 
461
        intp n=dimensions[0];
461
462
        Py_complex from1;
462
463
        Py_complex to1;
463
464
 
470
471
}
471
472
 
472
473
 
473
 
extern void PyUFunc_fff_f_As_iid_d(char **args, int *dimensions, int *steps, void *func) {
 
474
extern void PyUFunc_fff_f_As_iid_d(char **args, intp *dimensions, intp *steps, void *func) {
474
475
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
475
476
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op=args[3];
476
 
        int n=dimensions[0];
 
477
        intp n=dimensions[0];
477
478
        
478
479
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op+=os) {
479
480
                *(float *)op = (float)((DoubleFunc_iid_d *)func)((int)*(float *)ip1, (int)*(float *)ip2, (double)*(float *)ip3);
480
481
        }
481
482
}
482
483
 
483
 
extern void PyUFunc_ddd_d_As_iid_d(char **args, int *dimensions, int *steps, void *func) {
 
484
extern void PyUFunc_ddd_d_As_iid_d(char **args, intp *dimensions, intp *steps, void *func) {
484
485
        int i, is1=steps[0],is2=steps[1],is3=steps[2],os=steps[3];
485
486
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *op=args[3];
486
 
        int n=dimensions[0];
 
487
        intp n=dimensions[0];
487
488
        
488
489
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, op+=os) {
489
490
                *(double *)op = ((DoubleFunc_iid_d *)func)((int)*(double *)ip1, (int)*(double *)ip2, *(double *)ip3);
490
491
        }
491
492
}
492
493
 
493
 
extern void PyUFunc_ffff_f_As_dddd_d(char **args, int *dimensions, int *steps, void *func) {
 
494
extern void PyUFunc_ffff_f_As_dddd_d(char **args, intp *dimensions, intp *steps, void *func) {
494
495
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os=steps[4];
495
496
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *op=args[4];
496
 
        int n=dimensions[0];
 
497
        intp n=dimensions[0];
497
498
        
498
499
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op+=os) {
499
500
                *(float *)op = (float)((DoubleFunc_dddd_d *)func)((double)*(float *)ip1, (double)*(float *)ip2, (double)*(float *)ip3, (double)*(float *)ip4);
500
501
        }
501
502
}
502
503
 
503
 
extern void PyUFunc_dddd_d(char **args, int *dimensions, int *steps, void *func) {
 
504
extern void PyUFunc_dddd_d(char **args, intp *dimensions, intp *steps, void *func) {
504
505
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os=steps[4];
505
506
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3],*op=args[4];
506
 
        int n=dimensions[0];
 
507
        intp n=dimensions[0];
507
508
        
508
509
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op+=os) {
509
510
                *(double *)op = ((DoubleFunc_dddd_d *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3, *(double *)ip4);
510
511
        }
511
512
}
512
513
 
513
 
extern void PyUFunc_ffff_ff_As_dddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
514
extern void PyUFunc_ffff_ff_As_dddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
514
515
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os1=steps[4],os2=steps[5];
515
516
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *op1=args[4], *op2=args[5];
516
 
        int n=dimensions[0];
 
517
        intp n=dimensions[0];
517
518
        double to1;
518
519
        
519
520
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op1+=os1, op2+=os2) {
522
523
        }
523
524
}
524
525
 
525
 
extern void PyUFunc_dddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
526
extern void PyUFunc_dddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
526
527
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os1=steps[4],os2=steps[5];
527
528
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *op1=args[4], *op2=args[5];
528
 
        int n=dimensions[0];
 
529
        intp n=dimensions[0];
529
530
        
530
531
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op1+=os1, op2+=os2) {
531
532
                *(double *)op1 = ((DoubleFunc_dddd_dd *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3, *(double *)ip4, (double *)op2);
532
533
        }
533
534
}
534
535
 
535
 
extern void PyUFunc_fffff_ff_As_ddddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
536
extern void PyUFunc_fffff_ff_As_ddddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
536
537
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],is5=steps[4], os1=steps[5],os2=steps[6];
537
538
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *ip5=args[4], *op1=args[5], *op2=args[6];
538
 
        int n=dimensions[0];
 
539
        intp n=dimensions[0];
539
540
        double to1, to2;
540
541
        
541
542
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, ip5+=is5, op1+=os1, op2+=os2) {
545
546
        }
546
547
}
547
548
 
548
 
extern void PyUFunc_ddddd_dd(char **args, int *dimensions, int *steps, void *func) {
 
549
extern void PyUFunc_ddddd_dd(char **args, intp *dimensions, intp *steps, void *func) {
549
550
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],is5=steps[4],os1=steps[5],os2=steps[6];
550
551
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *ip5=args[4], *op1=args[5], *op2=args[6];
551
 
        int n=dimensions[0];
 
552
        intp n=dimensions[0];
552
553
        
553
554
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, ip5+=is5, op1+=os1, op2+=os2) {
554
555
                ((IntFunc_ddddd_dd *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3, *(double *)ip4, *(double *)ip5, (double *)op1, (double *)op2);
556
557
}
557
558
 
558
559
 
559
 
extern void PyUFunc_ffff_ff_As_dddi_dd(char **args, int *dimensions, int *steps, void *func) {
 
560
extern void PyUFunc_ffff_ff_As_dddi_dd(char **args, intp *dimensions, intp *steps, void *func) {
560
561
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os1=steps[4],os2=steps[5];
561
562
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *op1=args[4], *op2=args[5];
562
 
        int n=dimensions[0];
 
563
        intp n=dimensions[0];
563
564
        double to1;
564
565
        
565
566
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op1+=os1, op2+=os2) {
568
569
        }
569
570
}
570
571
 
571
 
extern void PyUFunc_dddd_dd_As_dddi_dd(char **args, int *dimensions, int *steps, void *func) {
 
572
extern void PyUFunc_dddd_dd_As_dddi_dd(char **args, intp *dimensions, intp *steps, void *func) {
572
573
        int i, is1=steps[0],is2=steps[1],is3=steps[2],is4=steps[3],os1=steps[4],os2=steps[5];
573
574
        char *ip1=args[0], *ip2=args[1], *ip3=args[2], *ip4=args[3], *op1=args[4], *op2=args[5];
574
 
        int n=dimensions[0];
 
575
        intp n=dimensions[0];
575
576
        
576
577
        for(i=0; i<n; i++, ip1+=is1, ip2+=is2, ip3+=is3, ip4+=is4, op1+=os1, op2+=os2) {
577
578
                *(double *)op1 = ((DoubleFunc_dddi_dd *)func)(*(double *)ip1, *(double *)ip2, *(double *)ip3, (int)*(double *)ip4, (double *)op2);