-
Notifications
You must be signed in to change notification settings - Fork 320
Views with non-fixed steps #600
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
I think this is roughly equivalent to array indexing, am I understanding it correctly? |
Yeah, well, numpy is immensely powerful and features like |
It would also make functions like |
A few thoughts:
|
Related to this: do you think it'd be reasonable to relax the |
Yes, that is quite doable even without something like the new |
@abreis it should be possible, it depends on stack actually. Copy was used since it's easier to implement efficiently. (Clone code needs to account for correct and safe behaviour during unwinding). |
I think this is the most relevant question to my discussion post #1050. Have any decisions been made about the best step forward?
|
I work with big 4D images, often iterating on
Axis(3)
to modify it or create a new image. In some cases, I need to iterate only on some indices:This method works and I can keep it but is there a way to ask for a view with the right indices?
select
is nice but it makes a copy of the data.s!
asks for astep
, which I can't give because it's "random". Anything likelet dwi = dwi.slice(s![.., .., .., &self.dwi_indices]);
?The text was updated successfully, but these errors were encountered: