Skip to content
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

Feature request: convert between Array{Union{T, Missing}, N} and Array{T, N} without copying #26681

Open
piever opened this issue Apr 2, 2018 · 1 comment · May be fixed by #36186
Open

Feature request: convert between Array{Union{T, Missing}, N} and Array{T, N} without copying #26681

piever opened this issue Apr 2, 2018 · 1 comment · May be fixed by #36186
Labels
arrays [a, r, r, a, y, s] missing data Base.missing and related functionality

Comments

@piever
Copy link
Contributor

piever commented Apr 2, 2018

As discussed in this thread , it'd be useful to allow converting between Array{Union{T, Missing}, N} and Array{T, N} without copying the data whenever possible. From (my understanding of) the discourse discussion, it seems that conversion fromArray{Union{T, Missing}, N} to Array{T, N} should always be possible without copying whereas the other direction depends on whether the already allocated region is big enough to fit the wider type.

@bkamins
Copy link
Member

bkamins commented May 14, 2021

bump - @vtjnash do you know who knows enough about Julia internals to implement this? (as the request popped up again recently) Or could you please point me to the documentation/section of the internals that are related to the required changes? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] missing data Base.missing and related functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants