Hi!
I need to do a fairly simple 1-dimensional convex optimization in every iteration of my estimation and so I need either a convex optimizer or a (numerical) root finder. I know that the Stan dev team is working on pushing a build with a full fledged function for this, but it seems like it'll be a while till it is pushed to the public build so I'm hoping to use a custom function in stan for myself.
I don't have much experience with writing root-finders - does anyone have an example or some guidance that might be of help? Anything would be greatly appreciated!
Thanks!
-Shosh