- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorneeds triageIssue has not been confirmed nor labeledIssue has not been confirmed nor labeled
Description
New in sparse 0.17.0:
>>> import sparse
>>> sparse.__array_namespace_info__().capabilities()
{'boolean indexing': True, 'data-dependent shapes': True, 'max dimensions': 63}
This is not correct.
The Array API defines boolean indexing as x[idx]
, where both x and idx are arrays.
However, sparse exclusively allows for boolean indexing when idx is an ArrayLike or a numpy array, which is out of the scope of the Array API - the expectation is that all arrays involved in a function belong to the same namespace, with exceptions on specific integration points (buffer interface in asarray
, __dlpack__
).
Until sparse can accept a sparse boolean index, capabilities should return {'boolean indexing': False, ...}
.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorneeds triageIssue has not been confirmed nor labeledIssue has not been confirmed nor labeled
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
boolean indexing
flag to False #884