Closed
Description
Proposed new feature or change:
Hello,
We have discovered a performance regression of the numpy.random.multinomial
function for small arrays apparently caused by the commit 0f3dd06 which add new checks. The checks are expensive regarding their purpose (especially for small arrays). This can be reproduced with Python 3.9.9 on a x86-64 machine using both Windows and Linux. Is there a way to reduce the overhead of such checks?
For more information, please read this Stack-Overflow post.
Thank you.