-
Notifications
You must be signed in to change notification settings - Fork 2
Discontinuous Functions #2
Comments
It's not just Stan --- what do you do with the C++ Are all the Stan developers on this list? I'd like
On Jul 2, 2014, at 2:45 PM, Michael Betancourt notifications@github.com wrote:
|
I'll create a separate thread but formally we might make difference choices for the two systems so I'm keeping this one open here as well. |
My opinion is that if Nomad is going to be standalone, we should provide as much functionality as possible. This means doing making decisions based on auto diff and not based on its applications, like HMC. So, I'm going to suggest we keep all of the functions listed. Perhaps a compromise could be to set an error flag with "discontinuous function, auto diff not valid" flag that could be queries at the end of reach computation. The burden would then be on the user to check the flag. |
I’d also prefer to not make any checking optional. Maybe have an option to turn it off, but I don’t want to make it easy for users to mess up without thinking. |
I would find the library extremely frustrating and not easy to use if a lot Lots of people I've met want to port old code. I understand that you want
|
On Jul 3, 2014, at 8:11 AM, Daniel Lee notifications@github.com wrote:
I think we all agree that this'll block some uses of the [Let's just take it as read that the vast majority of the The difference of opinion is that Michael thinks As to Daniel's suggestion, I do not like raise-an-error flag approaches. I'm sympathetic to both sides of this whole argument, but I tend I should write a "what kind of programmer are you"
|
Attended to in #11. |
What should we do with functions without proper derivatives? Stan includes them and ignores the discontinuities, but this does lead to unintended problems when people try to autodiff through them.
http://www.cplusplus.com/reference/cmath/
lroundllroundrintlrintllrintnearbyintremainderremquoabsThe text was updated successfully, but these errors were encountered: