-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
address concerns that depwarn for transpose is unclear #19205
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me, thanks.
Anyone else have comments here?
edit: could use a description of what's being fixed in the commit message, whoever does "merge and squash" can add a few words to the message at merge time if needed
LGTM |
"or writing a specific `transpose(x::$(typeof(x)))` method if appropriate."), | ||
depwarn(string("the no-op `transpose` for non-numeric arrays is deprecated, ", | ||
"and no specific `transpose` method for $(typeof(x)) exists. Use ", | ||
"permutedims(x, (2, 1)) for matrices and reshape(x, 1, length(x)) for vectors, ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should preserve the backticks around permutedims(...)
and reshape(...)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good eye, thanks!
* close JuliaLang#18320 * Update NEWS.md * Update deprecated.jl * Update deprecated.jl
I believe this synthesizes all of the concerns expressed in #18320