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.
1 parent a0770e4 commit b7f9c84Copy full SHA for b7f9c84
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.(Base.parent(VA), T))
+ VectorOfArray([similar(VA[:, i], T) for i in eachindex(VA.u)])
716
717
718
# for VectorOfArray with multi-dimensional parent arrays of arrays where all elements are the same type
0 commit comments