File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ recursive_bottom_eltype(a::Type{T}) where {T<:Number} = eltype(a)
99
99
recursive_unitless_bottom_eltype (a) = recursive_unitless_bottom_eltype (typeof (a))
100
100
recursive_unitless_bottom_eltype (a:: Type{T} ) where T = recursive_unitless_bottom_eltype (eltype (a))
101
101
recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: AbstractArray } = recursive_unitless_bottom_eltype (eltype (a))
102
- recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: Number } = typeof (one (eltype (a)))
102
+ recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: Number } = eltype (a) == Number ? Float64 : typeof (one (eltype (a)))
103
103
104
104
recursive_unitless_eltype (a) = recursive_unitless_eltype (eltype (a))
105
105
recursive_unitless_eltype (a:: Type{T} ) where {T<: StaticArray } = similar_type (a,recursive_unitless_eltype (eltype (a)))
You can’t perform that action at this time.
0 commit comments