@@ -6,7 +6,7 @@ using DiffEqBase: Void, FunctionWrappersWrappers, OrdinaryDiffEqTag, AbstractTim
6
6
RecursiveArrayTools, reduce_tup, _promote_tspan, has_continuous_callback
7
7
import DiffEqBase: hasdualpromote, wrapfun_oop, wrapfun_iip, prob2dtmin,
8
8
promote_tspan, anyeltypedual, isdualtype, value, ODE_DEFAULT_NORM,
9
- InternalITP, nextfloat_tdir, DualEltypeChecker
9
+ InternalITP, nextfloat_tdir, DualEltypeChecker, sse
10
10
11
11
eltypedual (x) = eltype (x) <: ForwardDiff.Dual
12
12
isdualtype (:: Type{<:ForwardDiff.Dual} ) = true
@@ -500,7 +500,6 @@ value(x::ForwardDiff.Dual) = value(ForwardDiff.value(x))
500
500
unitfulvalue (x:: Type{ForwardDiff.Dual{T, V, N}} ) where {T, V, N} = V
501
501
unitfulvalue (x:: ForwardDiff.Dual ) = unitfulvalue (ForwardDiff. unitfulvalue (x))
502
502
503
- sse (x:: Number ) = abs2 (x)
504
503
sse (x:: ForwardDiff.Dual ) = sse (ForwardDiff. value (x)) + sum (sse, ForwardDiff. partials (x))
505
504
totallength (x:: Number ) = 1
506
505
function totallength (x:: ForwardDiff.Dual )
0 commit comments