Skip to content

Conversation

Ivorforce
Copy link

Checklist

  • The title and commit message(s) are descriptive.
  • Small commits made to fix your PR have been squashed to avoid history pollution.
  • Tests have been added for new features or bug fixes.
  • API of new functions and classes are documented.

Description

Currently, when slicing a strided view, it may slice outside of the bounds unnoticed.
Ranges already support both negative indices (same as here) as well as bounds checks (clamped).

The behavior in this PR mimics NumPy behavior for negative and out of bounds index access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant