-
Notifications
You must be signed in to change notification settings - Fork 297
Implement std::student_t_distribution #6858
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
base: main
Are you sure you want to change the base?
Conversation
🥳 CI Workflow Results🟩 Finished in 2h 47m: Pass: 100%/90 | Total: 1d 03h | Max: 1h 49m | Hits: 97%/214468See results here. |
| #endif // no system header | ||
|
|
||
| #include <cuda/std/__cmath/roots.h> | ||
| #include <cuda/std/__limits/numeric_limits.h> |
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.
yes, I would like to see <cuda/std/__limits/numeric_limits.h> instead of <cuda/std/limits> also in the other distributions
| { | ||
| static_assert(__cccl_random_is_valid_urng<_URng>, "URng must meet the UniformRandomBitGenerator requirements"); | ||
| gamma_distribution<result_type> __gd{__p.n() * result_type{.5}, result_type{2}}; | ||
| return __nd_(__g) * cuda::std::sqrt(__p.n() / __gd(__g)); |
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.
| return __nd_(__g) * cuda::std::sqrt(__p.n() / __gd(__g)); | |
| return __nd_(__g) * ::cuda::std::sqrt(__p.n() / __gd(__g)); |
fbusato
left a comment
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.
only the sqrt namespace remains
No description provided.