Autodifferencing and type stability in DifferentialEquations.jl

Check out PreallocationTools.jl. See the FAQ on this.

https://diffeq.sciml.ai/stable/basics/faq/#I-get-Dual-number-errors-when-I-solve-my-ODE-with-Rosenbrock-or-SDIRK-methods

I should probably add an example on this to that tutorial.

1 Like