Skip to content

Commit 04435a9

Browse files
Merge pull request #102 from IntelPython/fix-failures-on-win-with-numpy-2.0
np.longcomplex and np.complex_ are replaced
2 parents d105f86 + 9261c08 commit 04435a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mkl_fft/_float_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ def __downcast_float128_array(x):
5959
xdt = x.dtype
6060
if xdt == np.longdouble and not xdt == np.float64:
6161
return np.asarray(x, dtype=np.float64)
62-
elif xdt == np.clongdouble and not xdt == np.complex_:
63-
return np.asarray(x, dtype=np.complex_)
62+
elif xdt == np.clongdouble and not xdt == np.complex128:
63+
return np.asarray(x, dtype=np.complex128)
6464
if not isinstance(x, np.ndarray):
6565
__x = np.asarray(x)
6666
xdt = __x.dtype
6767
if xdt == np.longdouble and not xdt == np.float64:
6868
return np.asarray(x, dtype=np.float64)
69-
elif xdt == np.longcomplex and not xdt == np.complex_:
70-
return np.asarray(x, dtype=np.complex_)
69+
elif xdt == np.clongdouble and not xdt == np.complex128:
70+
return np.asarray(x, dtype=np.complex128)
7171
return __x
7272
return x
7373

0 commit comments

Comments
 (0)