Check if the given indices are all within the array boundaries.
(indices: Any, size: int)
| 1473 | |
| 1474 | |
| 1475 | def _check_bounds(indices: Any, size: int): |
| 1476 | """Check if the given indices are all within the array boundaries.""" |
| 1477 | if np.any((indices < 0) | (indices >= size)): |
| 1478 | raise IndexError("out of bounds index") |
| 1479 | |
| 1480 | |
| 1481 | def _arrayize_outer_indexer(indexer: OuterIndexer, shape) -> OuterIndexer: |
no test coverage detected
searching dependent graphs…