-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
replace RowVector(shape...) constructors/calls with RowVector(uninitialized, shape...) #24786
Conversation
Absent objections or requests for time, I plan to merge these changes this evening PT or later. Best! |
…T}(uninitialized, shape...) etc.
Rebased. Planning to merge after rerunning CI. Best! |
base/deprecated.jl
Outdated
# deprecate RowVector{T}(shape...) constructors to RowVector{T}(uninitialized, shape...) equivalents | ||
@deprecate RowVector{T}(n::Int) where {T} RowVector{T}(uninitialized, n) | ||
@deprecate RowVector{T}(n1::Int, n2::Int) where {T} RowVector{T}(uninitialized, n1, n2) | ||
@deprecate RowVector{T}(n::Tuple{Int}) where {T} RowVector{T}(uninitializd, n) |
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.
uninitializd
-> uninitialized
I would have thought you were a master of spelling uninitialized after this series of PR's 😉
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.
I consistently make either of two mistakes: unintialized
, or uninitializd
. Seems I have trouble typing vowels? 😄
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.
Fixed. Thanks! :)
…alized, shape...) equivalents.
Thanks all! |
This pull request deprecates uninitialized-
RowVector
constructors of the formRowVector{T}(shape...)
in favor ofRowVector{T}(uninitialized, shape...)
equivalents. For background, please see #24595. Best!Tangentially, these methods do not appear to see use anywhere. Should we simply deprecate these methods altogether?