-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
DOC: The examples for numpy.mat do not demonstrate numpy.mat #20522
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
Thanks @hhoppe, you're right, the docstring for But that is because numpy/numpy/matrixlib/defmatrix.py Line 1113 in a81535a
I haven't dug into the history here, so I don't know why it is done this way. I'd recommend that we deprecate |
Should we just add a note in the docstring about this being an alias, while these are not deprecated? @hhoppe would you be interested in submitting a pull request for this? |
@melissawm @WarrenWeckesser has this been done yet? The it says "Unlike matrix, asmatrix does not make a copy if the input is already a matrix or an ndarray. Equivalent to matrix(data, copy=False)." Should "Equivalent to" be changed to "Alias for"? Also why are there empty lines in the example? |
Issue with current documentation:
On the doc page https://numpy.org/doc/stable/reference/generated/numpy.mat.html, the examples use
np.asmatrix
but notnp.mat
.Idea or request for content:
No response
The text was updated successfully, but these errors were encountered: