Closed morinim closed 4 years ago
std::sample is computationally simpler and more direct than the current approach (std::shuffle + std::move).
std::sample
std::shuffle
std::move
Sampling is performed in place so std::sample isn't appropriate. Performance issue is already been resolved with ad-hoc partial Fisher-Yates sampling.
std::sample
is computationally simpler and more direct than the current approach (std::shuffle
+std::move
).