We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe3e05c commit 6ea8ae2Copy full SHA for 6ea8ae2
1 file changed
array_api_tests/test_linalg.py
@@ -907,8 +907,8 @@ def true_trace(x_stack, offset=0):
907
908
909
def _conj(x):
910
- """Work around xp.conj rejecting floats."""
911
- if xp.isdtype(x.dtype, 'complex floating'):
+ # XXX: replace with xp.dtype when all array libraries implement it
+ if x.dtype in (xp.complex64, xp.complex128):
912
return xp.conj(x)
913
else:
914
return x
0 commit comments