-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
documentation of limitations of random integer sampling #5908
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
Comments
True. It could also just be fixed... Either by making np.random use
|
@njsmith Would this fix be subject to the same constraints as the 'choice' and 'dirichlet' and 'normal' improvements as in #5851 (comment)? |
Technically yes, but that doesn't necessarily cause a problem. E.g. letting
|
@njsmith This can be closed. |
According to #4085 numpy cannot sample integers larger than 32 bits on systems where
long
is 32 bits (64 bit Windows but not 64 bit Linux or Mac), causing complications like scipy/scipy#4552 which attempts to sample the sparsity structure of a large sparse matrix. This limitation could be documented more clearly on pages like http://docs.scipy.org/doc/numpy/reference/routines.random.html or http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.randint.html.The text was updated successfully, but these errors were encountered: