-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support missing values #19
Comments
This is actually supported, note that julia> x = Any[1 2 3;4 5 6]
2×3 Array{Any,2}:
1 2 3
4 5 6
julia> PaddedView(missing, x, (-3:3, -3:3))
7×7 PaddedView(missing, ::Array{Any,2}, (-3:3, -3:3)) with eltype Any with indices -3:3×-3:3:
missing missing missing missing missing missing missing
missing missing missing missing missing missing missing
missing missing missing missing missing missing missing
missing missing missing missing missing missing missing
missing missing missing missing 1 2 3
missing missing missing missing 4 5 6
missing missing missing missing missing missing missing |
Right, but padded view could be smart enough to change the eltype to Union{Missing,Float64} even if the underlying array has an eltype of Float64. |
Want to try a PR, @haberdashPI? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not seem to work:
Would be useful for computing various statistics, over an iterator of arrays, where I want to skip missing values if they fall outside the range of an individual array.
The text was updated successfully, but these errors were encountered: