-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
When using maximum(::Array, ::Int) with ForwardDiff, I get nasty errors saying Base.typemin is not defined.
As a stop-gap I just define it like this:
function Base.typemin(::Type{ForwardDiff.Dual{T,V,N}}) where {T,V,N}
ForwardDiff.Dual{T,V,N}(typemin(V))
endin my code, but that function probably really belongs here.
I would open a PR, but I'm not sure exactly where in dual.jl it belongs (e.g. which section of that file, so things stay organized) as well as whether or not it should be @inlined. Any suggestions?
matbesancon
Metadata
Metadata
Assignees
Labels
No labels