PDA in Stan?

If you just need to integrate some function, then you may want have look at this post:

There I am abusing the ODE integrator to do numerical integration. Not the fastest, not the most elegant solution, but it works with Stan already now.