Skip to content

REFACTOR: random module, backend lib #524

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

Merged
merged 2 commits into from
Jan 24, 2021

Conversation

samir-nasibli
Copy link

Description

  • dpnp_srand - > dpnp_rng_srand
  • all cython layer funcs dpnp_* to dpnp_rng_*
  • moved declarations of rng funcs to dpnp_iface_random.hpp

@samir-nasibli samir-nasibli requested a review from shssf January 23, 2021 15:55
* @brief math library implementation of random number generator (multinomial distribution)
*
* @param [in] size Number of elements in `result` arrays.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this empty line? Perhaps it is better to remove all these lines from "doctrings" in this file to make it a bit more compact.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how it will look in documentation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shssf I have checked, you are right. We need refactor this also, see: https://mesos.readthedocs.io/en/latest/doxygen-style-guide/.
We just need to do the same for dpnp_iface.hpp. Will do it on other PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice article.
Please, let's do it step by step. First step inside rng only

@shssf shssf merged commit c0c29e5 into master Jan 24, 2021
@shssf shssf deleted the samir-nasibli/refactor/random_srcs branch January 24, 2021 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants