File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ recursive_unitless_bottom_eltype(a) = recursive_unitless_bottom_eltype(eltype(a)
100100recursive_unitless_bottom_eltype (a:: Type{T} ) where {T<: Number } = typeof (one (eltype (a)))
101101
102102Base. @pure recursive_unitless_eltype (a) = recursive_unitless_eltype (eltype (a))
103- Base. @pure recursive_unitless_eltype {T<:StaticArray} (a:: Type{T} ) = similar_type (a,recursive_unitless_eltype (eltype (a)))
104- Base. @pure recursive_unitless_eltype {T<:Array} (a:: Type{T} ) = Array{recursive_unitless_eltype (eltype (a)),ndims (a)}
105- Base. @pure recursive_unitless_eltype {T<:Number} (a:: Type{T} ) = typeof (one (eltype (a)))
103+ Base. @pure recursive_unitless_eltype (a:: Type{T} ) where {T <: StaticArray } = similar_type (a,recursive_unitless_eltype (eltype (a)))
104+ Base. @pure recursive_unitless_eltype (a:: Type{T} ) where {T <: Array } = Array{recursive_unitless_eltype (eltype (a)),ndims (a)}
105+ Base. @pure recursive_unitless_eltype (a:: Type{T} ) where {T <: Number } = typeof (one (eltype (a)))
106106
107107recursive_mean (x... ) = mean (x... )
108108function recursive_mean (vecvec:: Vector{T} ) where T<: AbstractArray
You can’t perform that action at this time.
0 commit comments