-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Consistency of docstrings between ones
, zeros
and empty
.
#10611
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
While this is offtopic, but somewhat related, the chosen default type for these functions - |
No, they are correct - numpy promotes float into Your other remarks are valid - patch welcome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is some inconsistency in docstrings for 3 frequently used constructor functions:
ones
zeros
empty
ones
looks as follows:Interesting part here is signature
ones(shape, dtype=None, order='C')
, anddtype=None
. Whiledtype
description it is said that "Default isnumpy.float64
". For other two functions the signatures are:While they are better, they are also incorrect -> should be
dtype=double
ordtype=float64
.ones
andzeros
a pretty identical. But for theempty
it is somewhat stripped down:The text was updated successfully, but these errors were encountered: