-
Notifications
You must be signed in to change notification settings - Fork 152
export & document SUnitRange #620
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
Makes sense to me 👍 It's too bad that I guess we just document clearly that the recommended way to create one of these is via Other than that, are you and @tkoolen happy with the API? I must admit I haven't used this myself! |
Yes, I always wanted to export it. Is it currently “feature complete” in terms of indexing other kinds of arrays? At some point I was hoping to replace |
I don't currently have a use case for this myself, but I'm generally supportive of exporting it. I too was thinking about constant prop though; @tpapp, out of curiosity, do you have an example case where using Just looking at the code, I do wonder about the |
@tkoolen: I don't have an MWE, but I don't think constant propagation can be relied on universally, it does not always happen. Regarding the |
StaticArrays.SUnitRange
is very useful to unify code when I want a slice of anAbstractArray
to be anSArray
if the dimensions are known at compile time.I wonder if it could be documented and exported, and thus made part of the API.
I am happy to make a PR, just wanted some feedback on this first. (Cf #32)
The text was updated successfully, but these errors were encountered: