File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,9 @@ def isdtype(
481
481
"""
482
482
Returns a boolean indicating whether a provided dtype is of a specified data type ``kind``.
483
483
484
+ Note that outside of this function, this compat library does not yet fully
485
+ support complex numbers.
486
+
484
487
See
485
488
https://data-apis.org/array-api/latest/API_specification/generated/array_api.isdtype.html
486
489
for more details
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ def _spec_dtypes(library):
14
14
# torch does not have unsigned integer dtypes
15
15
return {
16
16
'bool' ,
17
+ 'complex64' ,
18
+ 'complex128' ,
17
19
'uint8' ,
18
20
'int8' ,
19
21
'int16' ,
@@ -25,6 +27,8 @@ def _spec_dtypes(library):
25
27
else :
26
28
return {
27
29
'bool' ,
30
+ 'complex64' ,
31
+ 'complex128' ,
28
32
'float32' ,
29
33
'float64' ,
30
34
'int16' ,
You can’t perform that action at this time.
0 commit comments