We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6549aaa + 67da057 commit 8ece560Copy full SHA for 8ece560
src/vector_of_array.jl
@@ -712,7 +712,7 @@ Base.eltype(::Type{<:AbstractVectorOfArray{T}}) where {T} = T
712
end
713
714
@inline function Base.similar(VA::VectorOfArray, ::Type{T} = eltype(VA)) where {T}
715
- VectorOfArray([similar(VA[:, i], T) for i in eachindex(VA.u)])
+ VectorOfArray(similar.(Base.parent(VA), T))
716
717
718
# for VectorOfArray with multi-dimensional parent arrays of arrays where all elements are the same type
0 commit comments