Can we use LinearExponential with Turing.jl model?

Cool, I was expecting something like that could happen.

exp isn’t differentiable. That’s the issue. But as mentioned/shown above, the new ones in ExponentialUtilities.jl are. So:

https://exponentialutilities.sciml.ai/dev/matrix_exponentials/#Matrix-Exponentials

swap that to exponential!(dt * Matrix(A)) and it should be good. Give it a quick try?