From 9261c08c6032ee4ae96407232dad99693d491d98 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 29 May 2024 21:09:47 -0500 Subject: [PATCH] np.longcomplex and np.complex_ are replaced --- mkl_fft/_float_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mkl_fft/_float_utils.py b/mkl_fft/_float_utils.py index 3688f06..cc500f1 100644 --- a/mkl_fft/_float_utils.py +++ b/mkl_fft/_float_utils.py @@ -59,15 +59,15 @@ def __downcast_float128_array(x): xdt = x.dtype if xdt == np.longdouble and not xdt == np.float64: return np.asarray(x, dtype=np.float64) - elif xdt == np.clongdouble and not xdt == np.complex_: - return np.asarray(x, dtype=np.complex_) + elif xdt == np.clongdouble and not xdt == np.complex128: + return np.asarray(x, dtype=np.complex128) if not isinstance(x, np.ndarray): __x = np.asarray(x) xdt = __x.dtype if xdt == np.longdouble and not xdt == np.float64: return np.asarray(x, dtype=np.float64) - elif xdt == np.longcomplex and not xdt == np.complex_: - return np.asarray(x, dtype=np.complex_) + elif xdt == np.clongdouble and not xdt == np.complex128: + return np.asarray(x, dtype=np.complex128) return __x return x