File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,14 @@ recursive_one(a::T) where {T<:Number} = one(a)
9393recursive_bottom_eltype (a) = a == eltype (a) ? a : recursive_bottom_eltype (eltype (a))
9494
9595recursive_unitless_bottom_eltype (a) = recursive_unitless_bottom_eltype (typeof (a))
96+ recursive_unitless_bottom_eltype (a:: Type{Any} ) = Any
9697recursive_unitless_bottom_eltype (a:: Type{T} ) where T = recursive_unitless_bottom_eltype (eltype (a))
9798recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: AbstractArray } = recursive_unitless_bottom_eltype (eltype (a))
9899recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: Number } = eltype (a) == Number ? Float64 : typeof (one (eltype (a)))
99100recursive_unitless_bottom_eltype (:: Type{<:Enum{T}} ) where T = T
100101
101102recursive_unitless_eltype (a) = recursive_unitless_eltype (eltype (a))
103+ recursive_unitless_eltype (a:: Type{Any} ) = Any
102104recursive_unitless_eltype (a:: Type{T} ) where {T<: StaticArray } = similar_type (a,recursive_unitless_eltype (eltype (a)))
103105recursive_unitless_eltype (a:: Type{T} ) where {T<: Array } = Array{recursive_unitless_eltype (eltype (a)),ndims (a)}
104106recursive_unitless_eltype (a:: Type{T} ) where {T<: Number } = typeof (one (eltype (a)))
You can’t perform that action at this time.
0 commit comments