File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ def conj(x: Array, /) -> Array:
317
317
"""
318
318
if x .dtype not in _complex_floating_dtypes :
319
319
raise TypeError ("Only complex floating-point dtypes are allowed in conj" )
320
- return Array ._new (np .conj (x ))
320
+ return Array ._new (np .conj (x . _array ))
321
321
322
322
@requires_api_version ('2023.12' )
323
323
def copysign (x1 : Array , x2 : Array , / ) -> Array :
@@ -480,7 +480,7 @@ def imag(x: Array, /) -> Array:
480
480
"""
481
481
if x .dtype not in _complex_floating_dtypes :
482
482
raise TypeError ("Only complex floating-point dtypes are allowed in imag" )
483
- return Array ._new (np .imag (x ))
483
+ return Array ._new (np .imag (x . _array ))
484
484
485
485
486
486
def isfinite (x : Array , / ) -> Array :
@@ -755,7 +755,7 @@ def real(x: Array, /) -> Array:
755
755
"""
756
756
if x .dtype not in _complex_floating_dtypes :
757
757
raise TypeError ("Only complex floating-point dtypes are allowed in real" )
758
- return Array ._new (np .real (x ))
758
+ return Array ._new (np .real (x . _array ))
759
759
760
760
761
761
def remainder (x1 : Array , x2 : Array , / ) -> Array :
You can’t perform that action at this time.
0 commit comments