Skip to content
Snippets Groups Projects
Commit 537f90d3 authored by Brian Groenke's avatar Brian Groenke
Browse files

Re-add missing adstrip method

parent d0c41190
No related branches found
No related tags found
No related merge requests found
...@@ -161,6 +161,14 @@ function ffill!(x::AbstractVector{T}) where {E,T<:Union{Missing,E}} ...@@ -161,6 +161,14 @@ function ffill!(x::AbstractVector{T}) where {E,T<:Union{Missing,E}}
return x return x
end end
"""
adstrip(x)
Strips autodiff type wrappers from `x`.
"""
adstrip(x) = x
adstrip(x::ForwardDiff.Dual) = ForwardDiff.value(x)
""" """
pstrip(obj; keep_units=false) pstrip(obj; keep_units=false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment