@@ -255,39 +255,6 @@ mkl_umath_@TYPE@_sqrt(char **args, const npy_intp *dimensions, const npy_intp *s
255255
256256/**end repeat**/
257257
258- /**begin repeat
259- * Float types
260- * #type = npy_float, npy_double#
261- * #TYPE = FLOAT, DOUBLE#
262- * #c = s, d#
263- * #scalarf = (1.0f)/sqrtf, (1.0)/sqrt#
264- */
265-
266- void
267- mkl_umath_@TYPE@_invsqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
268- {
269- const int contig = IS_UNARY_CONT(@type@, @type@);
270- const int disjoint_or_same = DISJOINT_OR_SAME(args[0], args[1], dimensions[0], sizeof(@type@));
271- const int can_vectorize = contig && disjoint_or_same;
272-
273- if(can_vectorize && dimensions[0] > VML_TRANSCEDENTAL_THRESHOLD)
274- {
275- CHUNKED_VML_CALL2(v@c@InvSqrt, dimensions[0], @type@, args[0], args[1]);
276- /* v@c@InvSqrt(dimensions[0], (@type@*) args[0], (@type@*) args[1]); */
277- } else {
278- UNARY_LOOP_DISPATCH(
279- @type@, @type@
280- ,
281- can_vectorize
282- ,
283- const @type@ in1 = *(@type@ *)ip1;
284- *(@type@ *)op1 = @scalarf@(in1);
285- )
286- }
287- }
288-
289- /**end repeat**/
290-
291258/**begin repeat
292259 * Float types
293260 * #type = npy_float, npy_double#
@@ -400,39 +367,6 @@ mkl_umath_@TYPE@_expm1(char **args, const npy_intp *dimensions, const npy_intp *
400367
401368/**end repeat**/
402369
403- /**begin repeat
404- * Float types
405- * #type = npy_float, npy_double#
406- * #TYPE = FLOAT, DOUBLE#
407- * #c = s, d#
408- * #scalarf = erff, erf#
409- */
410-
411- void
412- mkl_umath_@TYPE@_erf(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
413- {
414- const int contig = IS_UNARY_CONT(@type@, @type@);
415- const int disjoint_or_same = DISJOINT_OR_SAME(args[0], args[1], dimensions[0], sizeof(@type@));
416- const int can_vectorize = contig && disjoint_or_same;
417-
418- if( can_vectorize && dimensions[0] > VML_TRANSCEDENTAL_THRESHOLD)
419- {
420- CHUNKED_VML_CALL2(v@c@Erf, dimensions[0], @type@, args[0], args[1]);
421- /* v@c@Erf(dimensions[0], (@type@*) args[0], (@type@*) args[1]); */
422- } else {
423- UNARY_LOOP_DISPATCH(
424- @type@, @type@
425- ,
426- can_vectorize
427- ,
428- const @type@ in1 = *(@type@ *)ip1;
429- *(@type@ *)op1 = @scalarf@(in1);
430- )
431- }
432- }
433-
434- /**end repeat**/
435-
436370/**begin repeat
437371 * Float types
438372 * #type = npy_float, npy_double#
@@ -2189,14 +2123,6 @@ mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_i
21892123 }
21902124}
21912125
2192- void
2193- mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data))
2194- {
2195- OUTPUT_LOOP {
2196- *((@type@ *)op1) = 1;
2197- }
2198- }
2199-
22002126void
22012127mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
22022128{
@@ -2351,8 +2277,6 @@ mkl_umath_@TYPE@_ldexp_long(char **args, const npy_intp *dimensions, const npy_i
23512277}
23522278#endif
23532279
2354- #define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
2355-
23562280/**end repeat**/
23572281
23582282/*
@@ -2651,15 +2575,6 @@ mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_i
26512575 }
26522576}
26532577
2654- void
2655- mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data))
2656- {
2657- OUTPUT_LOOP {
2658- ((@ftype@ *)op1)[0] = 1;
2659- ((@ftype@ *)op1)[1] = 0;
2660- }
2661- }
2662-
26632578void
26642579mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func)) {
26652580 const int contig = IS_UNARY_CONT(@type@, @type@);
@@ -2703,16 +2618,6 @@ mkl_umath_@TYPE@_absolute(char **args, const npy_intp *dimensions, const npy_int
27032618 }
27042619}
27052620
2706- void
2707- mkl_umath_@TYPE@__arg(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
2708- {
2709- UNARY_LOOP {
2710- const @ftype@ in1r = ((@ftype@ *)ip1)[0];
2711- const @ftype@ in1i = ((@ftype@ *)ip1)[1];
2712- *((@ftype@ *)op1) = atan2@c@(in1i, in1r);
2713- }
2714- }
2715-
27162621void
27172622mkl_umath_@TYPE@_sign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
27182623{
@@ -2812,8 +2717,6 @@ mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp
28122717}
28132718/**end repeat1**/
28142719
2815- #define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
2816-
28172720/**end repeat**/
28182721
28192722#undef CGE
0 commit comments