@@ -7,11 +7,11 @@ function recursivecopy(a::AbstractArray{T,N}) where {T<:Number,N}
77end
88
99function recursivecopy (a:: AbstractArray{T,N} ) where {T<: AbstractArray ,N}
10- if ArrayInterface . ismutable (a)
10+ if ArrayInterfaceCore . ismutable (a)
1111 b = similar (a)
1212 map! (recursivecopy, b, a)
1313 else
14- ArrayInterface . restructure (a, map (recursivecopy, a))
14+ ArrayInterfaceCore . restructure (a, map (recursivecopy, a))
1515 end
1616end
1717
@@ -31,7 +31,7 @@ function recursivecopy!(b::AbstractArray{T,N},a::AbstractArray{T2,N}) where {T<:
3131end
3232
3333function recursivecopy! (b:: AbstractArray{T,N} ,a:: AbstractArray{T2,N} ) where {T<: AbstractArray ,T2<: AbstractArray ,N}
34- if ArrayInterface . ismutable (T)
34+ if ArrayInterfaceCore . ismutable (T)
3535 @inbounds for i in eachindex (b, a)
3636 recursivecopy! (b[i], a[i])
3737 end
108108
109109function copyat_or_push! (a:: AbstractVector{T} ,i:: Int ,x,nc:: Type{Val{perform_copy}} = Val{true }) where {T,perform_copy}
110110 @inbounds if length (a) >= i
111- if ! ArrayInterface . ismutable (T) || ! perform_copy
111+ if ! ArrayInterfaceCore . ismutable (T) || ! perform_copy
112112 # TODO : Check for `setindex!`` if T <: StaticArray and use `copy!(b[i],a[i])`
113113 # or `b[i] = a[i]`, see https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/issues/19
114114 a[i] = x
0 commit comments