-
Notifications
You must be signed in to change notification settings - Fork 54
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
Any standard way to unindex
?
#30
Comments
This isn't always well defined. For example if you had an ndarray with strides Also some elements might not have inverses. For example if you have a stride As a result |
I wrote the original I'm not very familiar with the semantics of You're right about your first point and conclusion: if some strides are 0 I also agree that
I don't know whether you care about this function at all, but I tried to implement a semantically correct version anyways. I re-implemented
This is an example of how it behaves:
If we want a semantically perfect version of
|
I need a function that, given an index in the underlying array, returns the ndarray index:
[i,j,...]
;I implemented it in my code (without the compilation logic of
ndarray
), and thought it might be useful within this project, sinceindex
is already there.The text was updated successfully, but these errors were encountered: