@@ -9,7 +9,6 @@ import Base: ==, <, <=, -, +, *, /, ~, isapprox,
99 signed, unsigned, copysign, flipsign, signbit,
1010 length
1111
12- import Statistics # for _mean_promote
1312import Random: Random, AbstractRNG, SamplerType, rand!
1413
1514import Base. Checked: checked_neg, checked_abs, checked_add, checked_sub, checked_mul,
@@ -557,10 +556,6 @@ Base.mul_prod(x::FixedPoint, y::FixedPoint) = Treduce(x) * Treduce(y)
557556Base. reduce_empty (:: typeof (Base. mul_prod), :: Type{F} ) where {F<: FixedPoint } = one (Treduce)
558557Base. reduce_first (:: typeof (Base. mul_prod), x:: FixedPoint ) = Treduce (x)
559558
560- if isdefined (Statistics, :_mean_promote )
561- Statistics. _mean_promote (x:: Real , y:: FixedPoint ) = Treduce (y)
562- end
563-
564559"""
565560 sd, ad = scaledual(s::Number, a)
566561
@@ -624,6 +619,10 @@ function rand!(r::AbstractRNG, A::Array{X}, ::SamplerType{X}) where {T, X <: Fix
624619 A
625620end
626621
622+ if ! isdefined (Base, :get_extension )
623+ include (" ../ext/FixedPointNumbersStatisticsExt.jl" )
624+ end
625+
627626if VERSION >= v " 1.1" # work around https://github.com/JuliaLang/julia/issues/34121
628627 include (" precompile.jl" )
629628 _precompile_ ()
0 commit comments