32
32
33
33
#include <string.h>
34
34
35
+ #ifdef _WIN32
36
+ #ifdef mkl_umath_loops_EXPORTS
37
+ #define MKL_UMATH_API __declspec(dllexport)
38
+ #else
39
+ #define MKL_UMATH_API __declspec(dllimport)
40
+ #endif
41
+ #else
42
+ #define MKL_UMATH_API
43
+ #endif
44
+
35
45
/**begin repeat
36
46
* Float types
37
47
* #TYPE = FLOAT, DOUBLE#
38
48
*/
39
49
40
- extern void
50
+ MKL_UMATH_API
51
+ void
41
52
mkl_umath_@TYPE@_sqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
42
53
43
- extern void
54
+ MKL_UMATH_API
55
+ void
44
56
mkl_umath_@TYPE@_invsqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
45
57
46
- extern void
58
+ MKL_UMATH_API
59
+ void
47
60
mkl_umath_@TYPE@_exp(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
48
61
49
- extern void
62
+ MKL_UMATH_API
63
+ void
50
64
mkl_umath_@TYPE@_exp2(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
51
65
52
- extern void
66
+ MKL_UMATH_API
67
+ void
53
68
mkl_umath_@TYPE@_expm1(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
54
69
55
- extern void
70
+ MKL_UMATH_API
71
+ void
56
72
mkl_umath_@TYPE@_erf(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
57
73
58
- extern void
74
+ MKL_UMATH_API
75
+ void
59
76
mkl_umath_@TYPE@_log(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
60
77
61
- extern void
78
+ MKL_UMATH_API
79
+ void
62
80
mkl_umath_@TYPE@_log2(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
63
81
64
- extern void
82
+ MKL_UMATH_API
83
+ void
65
84
mkl_umath_@TYPE@_log10(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
66
85
67
- extern void
86
+ MKL_UMATH_API
87
+ void
68
88
mkl_umath_@TYPE@_log1p(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
69
89
70
- extern void
90
+ MKL_UMATH_API
91
+ void
71
92
mkl_umath_@TYPE@_cos(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
72
93
73
- extern void
94
+ MKL_UMATH_API
95
+ void
74
96
mkl_umath_@TYPE@_sin(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
75
97
76
- extern void
98
+ MKL_UMATH_API
99
+ void
77
100
mkl_umath_@TYPE@_tan(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
78
101
79
- extern void
102
+ MKL_UMATH_API
103
+ void
80
104
mkl_umath_@TYPE@_arccos(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
81
105
82
- extern void
106
+ MKL_UMATH_API
107
+ void
83
108
mkl_umath_@TYPE@_arcsin(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
84
109
85
- extern void
110
+ MKL_UMATH_API
111
+ void
86
112
mkl_umath_@TYPE@_arctan(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
87
113
88
- extern void
114
+ MKL_UMATH_API
115
+ void
89
116
mkl_umath_@TYPE@_cosh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
90
117
91
- extern void
118
+ MKL_UMATH_API
119
+ void
92
120
mkl_umath_@TYPE@_sinh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
93
121
94
- extern void
122
+ MKL_UMATH_API
123
+ void
95
124
mkl_umath_@TYPE@_tanh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
96
125
97
- extern void
126
+ MKL_UMATH_API
127
+ void
98
128
mkl_umath_@TYPE@_arccosh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
99
129
100
- extern void
130
+ MKL_UMATH_API
131
+ void
101
132
mkl_umath_@TYPE@_arcsinh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
102
133
103
- extern void
134
+ MKL_UMATH_API
135
+ void
104
136
mkl_umath_@TYPE@_arctanh(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
105
137
106
- extern void
138
+ MKL_UMATH_API
139
+ void
107
140
mkl_umath_@TYPE@_fabs(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
108
141
109
- extern void
142
+ MKL_UMATH_API
143
+ void
110
144
mkl_umath_@TYPE@_floor(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
111
145
112
- extern void
146
+ MKL_UMATH_API
147
+ void
113
148
mkl_umath_@TYPE@_ceil(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
114
149
115
- extern void
150
+ MKL_UMATH_API
151
+ void
116
152
mkl_umath_@TYPE@_rint(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
117
153
118
- extern void
154
+ MKL_UMATH_API
155
+ void
119
156
mkl_umath_@TYPE@_trunc(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
120
157
121
- extern void
158
+ MKL_UMATH_API
159
+ void
122
160
mkl_umath_@TYPE@_cbrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
123
161
124
162
/**begin repeat1
125
163
* Arithmetic
126
164
* # kind = add, subtract, multiply, divide#
127
165
*/
128
- extern void
166
+ MKL_UMATH_API
167
+ void
129
168
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
130
169
/**end repeat1**/
131
170
@@ -134,83 +173,106 @@ mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp
134
173
* # kind = equal, not_equal, less, less_equal, greater, greater_equal,
135
174
* logical_and, logical_or#
136
175
*/
137
- extern void
176
+ MKL_UMATH_API
177
+ void
138
178
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
139
179
/**end repeat1**/
140
180
141
- extern void
181
+ MKL_UMATH_API
182
+ void
142
183
mkl_umath_@TYPE@_logical_xor(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
143
184
144
- extern void
185
+ MKL_UMATH_API
186
+ void
145
187
mkl_umath_@TYPE@_logical_not(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
146
188
147
189
/**begin repeat1
148
190
* #kind = isnan, isinf, isfinite, signbit#
149
191
**/
150
- extern void
192
+ MKL_UMATH_API
193
+ void
151
194
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
152
195
/**end repeat1**/
153
196
154
- extern void
197
+ MKL_UMATH_API
198
+ void
155
199
mkl_umath_@TYPE@_spacing(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
156
200
157
201
158
- extern void
202
+ MKL_UMATH_API
203
+ void
159
204
mkl_umath_@TYPE@_copysign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
160
205
161
- extern void
206
+ MKL_UMATH_API
207
+ void
162
208
mkl_umath_@TYPE@_nextafter(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
163
209
164
210
/**begin repeat1
165
211
* #kind = maximum, minimum, fmax, fmin#
166
212
**/
167
- extern void
213
+ MKL_UMATH_API
214
+ void
168
215
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
169
216
/**end repeat1**/
170
217
171
- extern void
218
+ MKL_UMATH_API
219
+ void
172
220
mkl_umath_@TYPE@_floor_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
173
221
174
- extern void
222
+ MKL_UMATH_API
223
+ void
175
224
mkl_umath_@TYPE@_remainder(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
176
225
177
- extern void
226
+ MKL_UMATH_API
227
+ void
178
228
mkl_umath_@TYPE@_divmod(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
179
229
180
- extern void
230
+ MKL_UMATH_API
231
+ void
181
232
mkl_umath_@TYPE@_square(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
182
233
183
- extern void
234
+ MKL_UMATH_API
235
+ void
184
236
mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
185
237
186
- extern void
238
+ MKL_UMATH_API
239
+ void
187
240
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
188
241
189
- extern void
242
+ MKL_UMATH_API
243
+ void
190
244
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
191
245
192
- extern void
246
+ MKL_UMATH_API
247
+ void
193
248
mkl_umath_@TYPE@_absolute(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
194
249
195
- extern void
250
+ MKL_UMATH_API
251
+ void
196
252
mkl_umath_@TYPE@_negative(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
197
253
198
- extern void
254
+ MKL_UMATH_API
255
+ void
199
256
mkl_umath_@TYPE@_positive(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
200
257
201
- extern void
258
+ MKL_UMATH_API
259
+ void
202
260
mkl_umath_@TYPE@_sign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
203
261
204
- extern void
262
+ MKL_UMATH_API
263
+ void
205
264
mkl_umath_@TYPE@_modf(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
206
265
207
- extern void
266
+ MKL_UMATH_API
267
+ void
208
268
mkl_umath_@TYPE@_frexp(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
209
269
210
- extern void
270
+ MKL_UMATH_API
271
+ void
211
272
mkl_umath_@TYPE@_ldexp(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
212
273
213
- extern void
274
+ MKL_UMATH_API
275
+ void
214
276
mkl_umath_@TYPE@_ldexp_long(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
215
277
216
278
#define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
@@ -239,17 +301,21 @@ mkl_umath_@TYPE@_ldexp_long(char **args, const npy_intp *dimensions, const npy_i
239
301
* arithmetic
240
302
* #kind = add, subtract#
241
303
*/
242
- extern void
304
+ MKL_UMATH_API
305
+ void
243
306
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
244
307
/**end repeat1**/
245
308
246
- extern void
309
+ MKL_UMATH_API
310
+ void
247
311
mkl_umath_@TYPE@_multiply(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
248
312
249
- extern void
313
+ MKL_UMATH_API
314
+ void
250
315
mkl_umath_@TYPE@_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
251
316
252
- extern void
317
+ MKL_UMATH_API
318
+ void
253
319
mkl_umath_@TYPE@_floor_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
254
320
255
321
@@ -259,36 +325,45 @@ mkl_umath_@TYPE@_floor_divide(char **args, const npy_intp *dimensions, const npy
259
325
not_equal, logical_and, logical_or, logical_xor, logical_not,
260
326
isnan, isinf, isfinite#
261
327
*/
262
- extern void
328
+ MKL_UMATH_API
329
+ void
263
330
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
264
331
/**end repeat1**/
265
332
266
- extern void
333
+ MKL_UMATH_API
334
+ void
267
335
mkl_umath_@TYPE@_square(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
268
336
269
- extern void
337
+ MKL_UMATH_API
338
+ void
270
339
mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
271
340
272
- extern void
341
+ MKL_UMATH_API
342
+ void
273
343
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
274
344
275
- extern void
345
+ MKL_UMATH_API
346
+ void
276
347
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
277
348
278
- extern void
349
+ MKL_UMATH_API
350
+ void
279
351
mkl_umath_@TYPE@_absolute(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
280
352
281
- extern void
353
+ MKL_UMATH_API
354
+ void
282
355
mkl_umath_@TYPE@__arg(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
283
356
284
- extern void
357
+ MKL_UMATH_API
358
+ void
285
359
mkl_umath_@TYPE@_sign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
286
360
287
361
/**begin repeat1
288
362
* arithmetic
289
363
* #kind = maximum, minimum, fmax, fmin#
290
364
*/
291
- extern void
365
+ MKL_UMATH_API
366
+ void
292
367
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
293
368
/**end repeat1**/
294
369
0 commit comments