Skip to content
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

[Post-C++ committee, Tokyo] Investigate the applicability of P1068 proposal #1516

Open
rarutyun opened this issue Apr 18, 2024 · 0 comments
Open

Comments

@rarutyun
Copy link
Contributor

rarutyun commented Apr 18, 2024

Paper link

The proposal is about adding the special API named generate_random, which allowed the vectorization of Random Number Generation.

The simple example might look like:

std::vector<std::uint32_t> v(1000000);
std::ranges::generate_random(v, std::mt19937{});

std::generate_random is a customization point that can be customized by generator (and/or distribution) for provide more efficient implementation.

Need to investigate the applicability to oneDPL RNG API.

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

No branches or pull requests

1 participant