We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a822af commit 2cf2bd2Copy full SHA for 2cf2bd2
src/PreallocationTools.jl
@@ -128,7 +128,7 @@ const dualcache = DiffCache
128
129
Returns the `Dual` or normal cache array stored in `dc` based on the type of `u`.
130
"""
131
-function get_tmp(dc::DiffCache, u::T) where {T <: ForwardDiff.Dual{T2}}
+function get_tmp(dc::DiffCache, u::T) where {T <: ForwardDiff.Dual}
132
if isbitstype(T)
133
nelem = div(sizeof(T), sizeof(eltype(dc.dual_du))) * length(dc.du)
134
if nelem > length(dc.dual_du)
0 commit comments