Skip to content

Commit

Permalink
Appease JET
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Oct 9, 2024
1 parent ac067b9 commit f93d189
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tracers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ end

primal(d::Dual) = d.primal
tracer(d::Dual) = d.tracer
isemptytracer(d::Dual) = isemptytracer(tracer(d))

gradient(d::Dual{P,T}) where {P,T<:GradientTracer} = gradient(tracer(d))
gradient(d::Dual{P,T}) where {P,T<:HessianTracer} = gradient(tracer(d))
hessian(d::Dual{P,T}) where {P,T<:HessianTracer} = hessian(tracer(d))
isemptytracer(d::Dual) = isemptytracer(tracer(d))

Dual{P,T}(d::Dual{P,T}) where {P<:Real,T<:AbstractTracer} = d
Dual(primal::P, tracer::T) where {P,T} = Dual{P,T}(primal, tracer)
Expand Down

0 comments on commit f93d189

Please sign in to comment.