Skip to content

Commit

Permalink
Remove calls to vectorization macros
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Mar 15, 2018
1 parent 5321025 commit 46cc095
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/basicfuns.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ It is the inverse of [`log1pexp`](@ref) (aka "softplus").
logexpm1(x::Real) = x <= 18.0 ? log(expm1(x)) : x <= 33.3 ? x - exp(-x) : oftype(exp(-x), x)
logexpm1(x::Float32) = x <= 9f0 ? log(expm1(x)) : x <= 16f0 ? x - exp(-x) : oftype(exp(-x), x)

Compat.@dep_vectorize_1arg Real xlogx
Compat.@dep_vectorize_2arg Real xlogy
Compat.@dep_vectorize_1arg Real logistic
Compat.@dep_vectorize_1arg Real logit
Compat.@dep_vectorize_1arg Real log1psq
Compat.@dep_vectorize_1arg Real log1pexp
Compat.@dep_vectorize_1arg Real log1mexp
Compat.@dep_vectorize_1arg Real log2mexp
Compat.@dep_vectorize_1arg Real logexpm1

const softplus = log1pexp
const invsoftplus = logexpm1

Expand Down

0 comments on commit 46cc095

Please sign in to comment.