-
Couldn't load subscription status.
- Fork 23
Add functionality to use arbitrary singular values in ConcatDiskArrays #256
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
Changes from 4 commits
9add95a
b744d4f
2284968
eaadc95
afe15cc
6781eae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,3 @@ | ||||||
|
|
||||||
| """ | ||||||
| ConcatDiskArray <: AbstractDiskArray | ||||||
|
|
||||||
|
|
@@ -15,7 +14,7 @@ Returned from `cat` on disk arrays. | |||||
|
|
||||||
| It is also useful on its own as it can easily concatenate an array of disk arrays. | ||||||
| """ | ||||||
| struct ConcatDiskArray{T,N,P,C,HC,ID} <: AbstractDiskArray{T,N} | ||||||
| struct ConcatDiskArray{T,N,P,C,HC, ID} <: AbstractDiskArray{T,N} | ||||||
| parents::P | ||||||
| startinds::NTuple{N,Vector{Int}} | ||||||
| size::NTuple{N,Int} | ||||||
|
|
@@ -24,23 +23,25 @@ struct ConcatDiskArray{T,N,P,C,HC,ID} <: AbstractDiskArray{T,N} | |||||
| innerdims::Val{ID} | ||||||
| end | ||||||
|
|
||||||
| function ConcatDiskArray(arrays::AbstractArray{Union{<:AbstractArray,Missing}}) | ||||||
| function ConcatDiskArray(arrays::AbstractArray{Union{<:AbstractArray,Missing}}; fill=missing) | ||||||
| et = Base.nonmissingtype(eltype(arrays)) | ||||||
| T = Union{Missing,eltype(et)} | ||||||
| T = promotetype(typeof(fill), eltype(et)) | ||||||
|
||||||
| T = promotetype(typeof(fill), eltype(et)) | |
| T = Union{Missing,eltype(et)} |
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.
Don't you have to read all the fill values in the array and promote them? Missing is not necessarily in the type?
Uh oh!
There was an error while loading. Please reload this page.