@@ -6,7 +6,7 @@ using DiffEqBase: Void, FunctionWrappersWrappers, OrdinaryDiffEqTag, AbstractTim
66 RecursiveArrayTools, reduce_tup, _promote_tspan, has_continuous_callback
77import DiffEqBase: hasdualpromote, wrapfun_oop, wrapfun_iip, prob2dtmin,
88 promote_tspan, anyeltypedual, isdualtype, value, ODE_DEFAULT_NORM,
9- InternalITP, nextfloat_tdir, DualEltypeChecker
9+ InternalITP, nextfloat_tdir, DualEltypeChecker, sse
1010
1111eltypedual (x) = eltype (x) <: ForwardDiff.Dual
1212isdualtype (:: Type{<:ForwardDiff.Dual} ) = true
@@ -500,7 +500,6 @@ value(x::ForwardDiff.Dual) = value(ForwardDiff.value(x))
500500unitfulvalue (x:: Type{ForwardDiff.Dual{T, V, N}} ) where {T, V, N} = V
501501unitfulvalue (x:: ForwardDiff.Dual ) = unitfulvalue (ForwardDiff. unitfulvalue (x))
502502
503- sse (x:: Number ) = abs2 (x)
504503sse (x:: ForwardDiff.Dual ) = sse (ForwardDiff. value (x)) + sum (sse, ForwardDiff. partials (x))
505504totallength (x:: Number ) = 1
506505function totallength (x:: ForwardDiff.Dual )
0 commit comments