You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment BlockArray(arr::AbstractArray{T,N},..) creates a BlockArray{T,N,typeof(arr)}. However, for many types subarrays are not of the same type (e.g., Diagonal). I think it is safer to always convert to Array.
The one argument I can see is that it might be nice for BlockArray(::SparseVector) to automatically use sparse data storage.
Another option is to look into whether the type of sub-blocks can be inferred automatically.
The text was updated successfully, but these errors were encountered:
At the moment
BlockArray(arr::AbstractArray{T,N},..)
creates aBlockArray{T,N,typeof(arr)}
. However, for many types subarrays are not of the same type (e.g.,Diagonal
). I think it is safer to always convert toArray
.The one argument I can see is that it might be nice for
BlockArray(::SparseVector)
to automatically use sparse data storage.Another option is to look into whether the type of sub-blocks can be inferred automatically.
The text was updated successfully, but these errors were encountered: