From 3b4d86f1adbf70f24cca37403d07e15a8447853e Mon Sep 17 00:00:00 2001 From: "femtocleaner[bot]" Date: Fri, 22 Jun 2018 23:57:25 +0000 Subject: [PATCH] Fix deprecations --- src/utils.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 4fb63f97..647fcf8c 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -100,9 +100,9 @@ recursive_unitless_bottom_eltype(a) = recursive_unitless_bottom_eltype(eltype(a) recursive_unitless_bottom_eltype(a::Type{T}) where {T<:Number} = typeof(one(eltype(a))) Base.@pure recursive_unitless_eltype(a) = recursive_unitless_eltype(eltype(a)) -Base.@pure recursive_unitless_eltype{T<:StaticArray}(a::Type{T}) = similar_type(a,recursive_unitless_eltype(eltype(a))) -Base.@pure recursive_unitless_eltype{T<:Array}(a::Type{T}) = Array{recursive_unitless_eltype(eltype(a)),ndims(a)} -Base.@pure recursive_unitless_eltype{T<:Number}(a::Type{T}) = typeof(one(eltype(a))) +Base.@pure recursive_unitless_eltype(a::Type{T}) where {T<:StaticArray} = similar_type(a,recursive_unitless_eltype(eltype(a))) +Base.@pure recursive_unitless_eltype(a::Type{T}) where {T<:Array} = Array{recursive_unitless_eltype(eltype(a)),ndims(a)} +Base.@pure recursive_unitless_eltype(a::Type{T}) where {T<:Number} = typeof(one(eltype(a))) recursive_mean(x...) = mean(x...) function recursive_mean(vecvec::Vector{T}) where T<:AbstractArray