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
The copy! function has special-casing to handle the case where the source and destination arrays are equal, but this machinery does not work for views:
julia> a = [1:10;]; copy!(a, 2, a, 1, 9)
10-element Array{Int64,1}:1123456789
julia> a = [1:10;]; v =view(a, 1:10); copy!(v, 2, v, 1, 9)
10-element SubArray{Int64,1,Array{Int64,1},Tuple{UnitRange{Int64}},true}:1111111111
The text was updated successfully, but these errors were encountered:
The
copy!
function has special-casing to handle the case where the source and destination arrays are equal, but this machinery does not work for views:The text was updated successfully, but these errors were encountered: