File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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):
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
You can’t perform that action at this time.
0 commit comments