-
-
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
deprecate sparse(s::UniformScaling, m::Integer) in favor of three-arg equivalent #24472
Conversation
66f4c7f
to
6bd3c79
Compare
Ref. #24438 (comment). Best! |
Seems the deprecation somehow impacts Documenter? |
Hmm, I'm seeing thousands of line of the type:
|
Ah, by nature of living in |
base/deprecated.jl
Outdated
@@ -1821,6 +1821,8 @@ function toc() | |||
return t | |||
end | |||
|
|||
@deprecate sparse(s::UniformScaling, m::Integer) sparse(s, m, m) |
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.
Probably just need an import SparseArrays.sparse
here
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.
Yes, something of that kind should do the trick. I went with @eval SparseArrays @deprecate ...
; let's see what CI says. Thanks! :)
Rebased and (hopefully) fixed the |
Thanks all! :) |
Per triage, this pull request deprecates
sparse(s::UniformScaling, m::Integer)
in favor of the three-argument equivalentsparse(s::UniformScaling, m::Integer, n::Integer)
. Best!