You need to do u0 = typeof(α).(ode_lin.u0) to promote it to dual. But I have an idea for how to automate this promotion, so I’ll instead respond with a PR in a second.
2 Likes
You need to do u0 = typeof(α).(ode_lin.u0) to promote it to dual. But I have an idea for how to automate this promotion, so I’ll instead respond with a PR in a second.