Skip to content

Commit

Permalink
attempt at working around Coverage breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels committed Aug 6, 2015
1 parent 80ddc17 commit c3927aa
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/ForwardDiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,27 @@ module ForwardDiff
isless, isreal, isnan, isfinite,
eps, conj, transpose, ctranspose,
eltype, abs, abs2
# Import fad_supported_univar_funcs - use the below commented-out
# loop to do auto-gen these imports once
# https://github.com/jakebolewski/JuliaParser.jl/issues/19
# is fixed.
import Base: sqrt, cbrt, abs2, inv, log, log10,
log2, log1p, exp, exp2, expm1, sin,
cos, tan, sec, csc, cot, sind, cosd,
tand, secd, cscd, cotd, asin, acos,
atan, asec, acsc, acot, asind, acosd,
atand, asecd, acscd, acotd, sinh, cosh,
tanh, sech, csch, coth, asinh, acosh,
atanh, asech, acsch, acoth, erf, erfc,
erfi, gamma, lgamma, digamma, trigamma,
airy, airyprime, airyai, airybi, airyaiprime,
airybiprime, besselj0, besselj1, bessely0, bessely1

const fad_supported_univar_funcs = map(first, Calculus.symbolic_derivatives_1arg())

for fsym in fad_supported_univar_funcs
@eval import Base.$(fsym)
end
# for fsym in fad_supported_univar_funcs
# @eval import Base.$(fsym);
# end

include("ForwardDiffNum.jl")
include("GradientNum.jl")
Expand Down

0 comments on commit c3927aa

Please sign in to comment.