Skip to content

Commit

Permalink
Deprecate vectorized functions in base/special/erf.jl in favor of com…
Browse files Browse the repository at this point in the history
…pact broadcast syntax.
Sacha0 committed Sep 4, 2016
1 parent b0f4e94 commit 15234b4
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
@@ -886,12 +886,14 @@ for f in (
:sinpi, :cospi, :sinc, :cosc, # base/special/trig.jl
:log, :log1p, # base/special/log.jl
:gamma, :lfact, :digamma, :trigamma, :zeta, :eta,# base/special/gamma.jl
:erfcx, :erfi, :dawson, # base/special/erf.jl
)
@eval @dep_vectorize_1arg Number $f
end
for f in (
:sind, :cosd, :tand, :asind, :acosd, :atand, :asecd, :acscd, :acotd, # base/special/trig.jl
:invdigamma, # base/special/gamma.jl
:erfinc, :erfcinv, # base/special/erf.jl
)
@eval @dep_vectorize_1arg Real $f
end
4 changes: 0 additions & 4 deletions base/special/erf.jl
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ for f in (:erfcx, :erfi, :Dawson)
($fname)(x::Float64) = ccall(($(string("Faddeeva_",f,"_re")),openspecfun), Float64, (Float64,), x)
($fname)(x::Float32) = Float32(ccall(($(string("Faddeeva_",f,"_re")),openspecfun), Float64, (Float64,), Float64(x)))
($fname)(x::Integer) = ($fname)(float(x))
@vectorize_1arg Number $fname
end
end

@@ -137,7 +136,6 @@ function erfinv(x::Float32)
end

erfinv(x::Integer) = erfinv(float(x))
@vectorize_1arg Real erfinv

# Inverse complementary error function: use Blair tables for y = 1-x,
# exploiting the greater accuracy of y (vs. x) when y is small.
@@ -217,5 +215,3 @@ function erfcinv(y::Float32)
end

erfcinv(x::Integer) = erfcinv(float(x))
@vectorize_1arg Real erfcinv

0 comments on commit 15234b4

Please sign in to comment.