You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, list(Slice(0, 3)) would return [0, 1, 2]. list(Tuple(Slice(0, 1), Slice(0, 1)) would return [(0, 0), (0, 1), (1, 0), (1, 1)]. It would raise ValueError on a Tuple with an ellipsis.
An iter would be infinite if the length of a slice is unbounded, but a shape reduced index should always give a finite iteration of exactly prod(shape) items.
The text was updated successfully, but these errors were encountered:
For example,
list(Slice(0, 3))
would return[0, 1, 2]
.list(Tuple(Slice(0, 1), Slice(0, 1))
would return[(0, 0), (0, 1), (1, 0), (1, 1)]
. It would raise ValueError on a Tuple with an ellipsis.An
iter
would be infinite if the length of a slice is unbounded, but a shape reduced index should always give a finite iteration of exactlyprod(shape)
items.The text was updated successfully, but these errors were encountered: