Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert a (view) index into strides and offset #180

Open
asmeurer opened this issue Jun 10, 2024 · 0 comments
Open

Convert a (view) index into strides and offset #180

asmeurer opened this issue Jun 10, 2024 · 0 comments

Comments

@asmeurer
Copy link
Member

It would be useful to be able to convert a view index into new set of strides and offset, so that for instance, the index could be reconstructed directly from the ndarray constructor https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html (as_strided doesn't support setting an offset).

The reverse could also be useful, although more difficult as not every stride manipulation can be represented as a slice.

See also #149

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

No branches or pull requests

1 participant