ForwardDiff.derivative! of inplace functions

You need to implement a cache for the in place vector. I have been playing this problem too. I hope this helps: ForwardDiff caches usage - #6 by jdlara-berkeley