Skip to content

Commit 92842c2

Browse files
authored
Setting boolean indexing flag to False (#884)
1 parent c8f8b61 commit 92842c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ in the form `x.reduction()`, the following reductions are supported:
209209
## Indexing
210210

211211
[`sparse.COO`][] and [`sparse.GCXS`][] arrays can be [indexed](https://numpy.org/doc/stable/user/basics.indexing.html)
212-
just like regular [`numpy.ndarray`][] objects. They support integer, slice and boolean indexing.
212+
just like regular [`numpy.ndarray`][] objects. They support integer, slice and boolean and array indexing (boolean and array indexing is supported only by dense NumPy arrays).
213213
However, currently, numpy advanced indexing is not properly supported. This
214214
means that all of the following work like in Numpy, except that they will produce
215215
[`sparse.SparseArray`][] arrays rather than [`numpy.ndarray`][] objects, and will produce

sparse/numba_backend/_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self):
2828
def capabilities(self):
2929
np_capabilities = self.np_info.capabilities()
3030
return {
31-
"boolean indexing": True,
31+
"boolean indexing": False,
3232
"data-dependent shapes": True,
3333
"max dimensions": np_capabilities.get("max dimensions", 64) - 1,
3434
}

0 commit comments

Comments
 (0)