Skip to content

Commit df6d8bb

Browse files
abstract recursivecopy!
1 parent 19b71ed commit df6d8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
function recursivecopy!{T<:Number,N}(b::Array{T,N},a::Array{T,N})
1+
function recursivecopy!{T<:Number,N}(b::AbstractArray{T,N},a::AbstractArray{T,N})
22
@inbounds copy!(b,a)
33
end
44

5-
function recursivecopy!{T<:AbstractArray,N}(b::Array{T,N},a::Array{T,N})
5+
function recursivecopy!{T<:AbstractArray,N}(b::AbstractArray{T,N},a::AbstractArray{T,N})
66
@inbounds for i in eachindex(a)
77
recursivecopy!(b[i],a[i])
88
end

0 commit comments

Comments
 (0)