Open
Description
While trying to ForwardDiff expint
, I got the following error:
MethodError: no method matching floatmax(::ForwardDiff.Dual{ForwardDiff.Tag{var"#135#136", Float64}, Float64, 3})
occurring at
SpecialFunctions.jl/src/expint.jl
Line 169 in c400278
The issue is that ForwardDiff.jl only implements floatmax(T)
, while SpecialFunctions.jl uses floatmax(::T)
.
In Base, both are implemented, but only floatmax(T)
is documented.
There are two possible straightforward solutions in this case (implementing floatmax(::T)
in ForwardDiff, or adding a typeof
in SpecialFunctions). Not sure if one of them should be preferred.
Metadata
Assignees
Labels
No labels