File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 27
27
*****************************************************************************
28
28
*/
29
29
30
+ #define ABS (x ) ((x) < 0 ? -(x) : (x))
31
+
30
32
#if defined(HAVE_CBLAS )
31
33
/*
32
34
* -1 to be conservative, in case blas internally uses a for loop with an
@@ -554,9 +556,9 @@ NPY_NO_EXPORT void
554
556
} else {
555
557
/* matrix @ matrix
556
558
* copy if not blasable, see gh-12365 & gh-23588 */
557
- npy_bool i1_transpose = is1_m < is1_n ,
558
- i2_transpose = is2_n < is2_p ,
559
- o_transpose = os_m < os_p ;
559
+ npy_bool i1_transpose = ABS ( is1_m ) < ABS ( is1_n ) ,
560
+ i2_transpose = ABS ( is2_n ) < ABS ( is2_p ) ,
561
+ o_transpose = ABS ( os_m ) < ABS ( os_p ) ;
560
562
561
563
npy_intp tmp_is1_m = i1_transpose ? sz : sz * dn ,
562
564
tmp_is1_n = i1_transpose ? sz * dm : sz ,
You can’t perform that action at this time.
0 commit comments