@@ -6,18 +6,18 @@ function recursivecopy{T<:AbstractArray,N}(a::AbstractArray{T,N})
66 [recursivecopy (x) for x in a]
77end
88
9- function recursivecopy! {T<:StaticArray,N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T ,N} )
9+ function recursivecopy! {T<:StaticArray,T2<:StaticArray, N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T2 ,N} )
1010 @inbounds for i in eachindex (a)
1111 # TODO : Check for `setindex!`` and use `copy!(b[i],a[i])` or `b[i] = a[i]`, see #19
1212 b[i] = copy (a[i])
1313 end
1414end
1515
16- function recursivecopy! {T<:Number,N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T ,N} )
16+ function recursivecopy! {T<:Number,T2<:Number, N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T2 ,N} )
1717 copy! (b,a)
1818end
1919
20- function recursivecopy! {T<:AbstractArray,N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T ,N} )
20+ function recursivecopy! {T<:AbstractArray,T2<:AbstractArray, N} (b:: AbstractArray{T,N} ,a:: AbstractArray{T2 ,N} )
2121 @inbounds for i in eachindex (a)
2222 recursivecopy! (b[i],a[i])
2323 end
0 commit comments