-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension of PR#679 to stdlib_stats_distribution_exponential
#717
Extension of PR#679 to stdlib_stats_distribution_exponential
#717
Conversation
…ossible, otherwise explicit impure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Are the "new" behaviours ("NAN" instead of "error stop") reflected in the specs?
Not yet, but I've realized that shortcoming. I started started fixing it for normal and I will do so for exponential. |
…/stdlib into stats-distribution-exponential
For the sake of clarity, the question raised above by @jvdp1 has been addressed with the last batch of commits. From my perspective, this PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @HugoMVale . I'll merge it.
Please refer to #679 for an explanation about the issue to solve and approach used. As discussed there, I've extended the approach to the exponential module.
IMO, this module still has other opportunities for improvement. For instance, I don't understand why
rvs_exp_array_
does not call the corresponding scalar procedurervs_exp_
, but instead repeats the code inrvs_exp_0_
. I will have a better look at it and, eventually, suggest another PR.