Unitful + ForwardDiff

ForwardDiff.jl and Unitful.jl do not work together out of the box. Did anybody try to make them work together?

I have tried but I can’t make it work, it would be nice if these two packages could be used at the same time

An MWE would be useful, but generally I would just add a wrapper that adds units, calls the relevant function, and then removes units, and AD that.

1 Like