@@ -68,11 +68,22 @@ def capabilities(self):
6868 The resulting dictionary has the following keys:
6969
7070 - **"boolean indexing"**: boolean indicating whether an array library
71- supports boolean indexing. Always ``False`` for Dask.
71+ supports boolean indexing.
72+
73+ Dask support boolean indexing as long as both the index
74+ and the indexed arrays have known shapes.
75+ Note however that the output .shape and .size properties
76+ will contain a non-compliant math.nan instead of None.
7277
7378 - **"data-dependent shapes"**: boolean indicating whether an array
74- library supports data-dependent output shapes. Always ``False`` for
75- Dask.
79+ library supports data-dependent output shapes.
80+
81+ Dask implements unique_values et.al.
82+ Note however that the output .shape and .size properties
83+ will contain a non-compliant math.nan instead of None.
84+
85+ - **"max dimensions"**: integer indicating the maximum number of
86+ dimensions supported by the array library.
7687
7788 See
7889 https://data-apis.org/array-api/latest/API_specification/generated/array_api.info.capabilities.html
@@ -99,9 +110,8 @@ def capabilities(self):
99110
100111 """
101112 return {
102- "boolean indexing" : False ,
103- "data-dependent shapes" : False ,
104- # 'max rank' will be part of the 2024.12 standard
113+ "boolean indexing" : True ,
114+ "data-dependent shapes" : True ,
105115 "max dimensions" : 64 ,
106116 }
107117
0 commit comments