-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
ENH: dtype
argument in random.Generator.normal
#23694
Comments
Seems like a logical path to me for enhancement. |
This adds a dtype parameter in numpy.Generator.normal. > I compared a similar function mentioned in the issue numpy#23694 to gain some insight on adding the parameter > Closes numpy#23694
The omission is deliberate, but could be reconsidered. We don't want to add @DuanBoomer This involves a policy choice rather than just work, so it might not be a good place for a first contribution. |
@rkern Thank you for the clarification I know it won't be accepted but still would love to hear your feedback. |
@ngoldbaum's comment on your PR is correct. That modification does not address the feature request. |
Thank you so much for the feedback @ngoldbaum and @rkern , I will try to improve the cpython implementation on my fork just to learn something out of it. Example: If a real user goes and types numpy.Generator.normal he will usually see the parameters to be included in it when using a editor like VS Code. |
|
Proposed new feature or change:
It would be great to support a
dtype
argument inrandom.Generator.normal
.dtype
is already supported the similar functionrandom.Generator.standard_normal
forfloat32
andfloat64
as ofnumpy==1.24.3
. Perhaps this behavior can be easily ported over.The text was updated successfully, but these errors were encountered: