File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,15 @@ def __downcast_float128_array(x):
59
59
xdt = x .dtype
60
60
if xdt == np .longdouble and not xdt == np .float64 :
61
61
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 )
64
64
if not isinstance (x , np .ndarray ):
65
65
__x = np .asarray (x )
66
66
xdt = __x .dtype
67
67
if xdt == np .longdouble and not xdt == np .float64 :
68
68
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 )
71
71
return __x
72
72
return x
73
73
You can’t perform that action at this time.
0 commit comments