-
-
Notifications
You must be signed in to change notification settings - Fork 199
Open
Description
Description
Error handling is not consistent between different mathematical functions. Most primitive functions only call std implementation and return NaN in case of invalid input. Some check for invalid input and throw exceptions.
Example
stan::math::log() directely calls std::log(). So any negative argument results in NaN return value.
stan::math::log1p() checks if its argument is less than -1 and throws std::domain_error if it is.
Expected Output
Consistent error handling.
Current Version:
v3.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels