std::poisson_distribution and std::negative_binomial_distribution are terrible for small types like int8_t #56656
Labels
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
The following tests fail miserably for
std::negative_binomial_distribution
onint8_t
anduint8_t
. We have similar problems forstd::poisson_distribution
.Basically, I think we need to re-think the algorithm we use for
std::poisson_distribution
(which is whatnegative_binomial_distribution
uses too). That might require an ABI break, however breaking the ABI of random distributions might be acceptable.The text was updated successfully, but these errors were encountered: