-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: add ability to set VectorOfArray with Array using broadcast #309
feat: add ability to set VectorOfArray with Array using broadcast #309
Conversation
a30d7d0
to
4d8130e
Compare
|
||
@inline function Base.copyto!(dest::AbstractVectorOfArray, | ||
bc::Broadcast.Broadcasted{<:Broadcast.DefaultArrayStyle}) | ||
bc = Broadcast.flatten(bc) |
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.
won't this allocate?
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.
guess not, I'm adding a test for that.
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.
Which part? unpack_voa
creates views, so it won't if the target array is mutable. If the target isn't, then it has to allocate
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.