-
Notifications
You must be signed in to change notification settings - Fork 112
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
[oneMath][RNG] Add geometric distribution to Device API #604
[oneMath][RNG] Add geometric distribution to Device API #604
Conversation
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.
Looks good to me! Thank you for extending RNG device API scope
@@ -78,6 +78,10 @@ basic random number generators. | |||
- integer | |||
- integer | |||
- Bernoulli distribution | |||
* - :ref:`onemath_device_rng_geometric` | |||
- integer | |||
- float |
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.
double-checking: is it float
for both int32_t
/int64_t
or should it be float
/double
?
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.
You are correct, int64_t
can be mapped to double
in terms of type.
Here, as an idea, float
refers to general floating-point data type, not exact float
type.
The same is done for discrete uniform distr and integer
type in general in this table.
Please share if you think it make sense to reformat this table
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.
hmmm, in the table with Continuous distributions it states float/double separately. Probably it makes sense to change float
to floating point
and add a note that it can vary for distributions implementation depending on the integer data type size
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.
Applied. @aelizaro please take a look one more time :)
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.
Looks good to me
1a5f644
to
7d33e6f
Compare
Proposal to add geometric distribution to oneMath RNG Device API.
Overview: API similar to existing Bernoulli distribution. Supported data types: 32 and 64 integer types.
fix: changed notes style for RNG