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 9eaea85 commit 9d2a40eCopy full SHA for 9d2a40e
src/RecursiveArrayTools.jl
@@ -45,9 +45,10 @@ module RecursiveArrayTools
45
recursivecopy!(a[i],x)
46
end
47
else
48
- if eltype(x) <: Number && typeof(x) <: Array
+ if eltype(x) <: Number && (typeof(x) <: Array || typeof(x) <: Number)
49
# Have to check that it's <: Array or can have problems
50
# with abstract arrays like MultiScaleModels.
51
+ # Have to check <: Number since it could just be a number...
52
push!(a,copy(x))
53
54
push!(a,deepcopy(x))
0 commit comments