-
Notifications
You must be signed in to change notification settings - Fork 323
Ranges (signed ranges) as axis extents in dimensions #152
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
Comments
Using signed ranges as the size of axes is not something we are going to do. Negative indices can be used with slicing right now, negative indices count from the back of the axis, so |
In python, that would be |
Ok, so this is more about Python style multi-dimensional arrays. I'll see if I can work around and express my algorithms differently, or if I need to implement my own multi-dimensional array. Thank you for the quick answer ! |
The previous No was certainly the most productive answer, and honest too, because it's the easiest to deliver on 😉. Either way, no promises, just some notes about what separates ndarray from being able to support it. If we make some changes incrementally, we might be able to generalize it enough to support it down the line.
Links: |
Do you have plans for negative indexing in arrays? Or is it even already possible? I did not found documentation about it.
I like the capacities of Fortran here, where you can write
It make expressing some algorithms much easier.
Rust support could look something like
That would require allowing
Range
as dimensions, andisize
as indexes.Edit: I just found a mention to
Ixs
for signed dimensions, but nothing aboutRange
size. Is it related to that feature or not?The text was updated successfully, but these errors were encountered: