-
Notifications
You must be signed in to change notification settings - Fork 151
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
Sized AbstractArray #783
Sized AbstractArray #783
Conversation
6cc24ef
to
61c1de9
Compare
The CI failures here are weird - it's a git error at checkout where supposedly d2adcd0 doesn't exist. But it exists in my local repo. |
I've pushed a new commit and the tests seem to be running OK. I have one question here: do you think |
To me - the ideal behavior has If this involves effort I would wait until we support |
As far as I can tell, this is already the case 🙂 . I'm primarily concerned that without swapping of |
I think this is ready for review now. I have finished |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good-to-go (thanks!) but I'd prefer the MArray
view to go into the other file. Julia will still find the new_out_size
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on Andy's review I think this should be good to merge.
I went ahead and released 0.12.4 this morning to get that in before this breaking change.
I've fixed one remaining problem with views. Failure on nightly is related to a change in printing of types. |
Could you define |
Sure, I've just added |
Are there any plans to release StaticArrays 0.13 sometime soonish? If not, I think I'll put sized abstract arrays in HybridArrays.jl for now. It would solve many problems with |
@mateuszbaran I approved this, so I was kind of waiting for you to go ahead and merge it. Go on :) Regarding release, I was imagining we should just release 1.0 next, following the most conservative release plan (ie, just release it more or less as-is not trying to get any more major breaking changes in). IIRC there was one other minor breaking change we should do. |
Great! I will merge it. Releasing 1.0 would be quite a big thing and I'm happy with your plan about it 👍 . |
Allocation-free statically sized views in Julia 1.5 🎉
The code should be more-or-less complete but I need to add more tests.
One thing that is potentially controversial (and subject to change) is allowing one way of reshaping. Sometimes I represent arrays of different sizes as parts of a long 1-dimensional array, I could of course call
reshape
before wrapping inSizedArray
but that's easy enough to do directly inSizedArray
, and currentlySizedArray
allows for even more reshaping. Relevant PR: #666.This PR supersedes #341 .