Skip to content
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

fix #37359 Return a Diagonal matrix when Abstract type is a Number #37504

Closed
wants to merge 5 commits into from

Conversation

tantei3
Copy link

@tantei3 tantei3 commented Sep 10, 2020

Closes #37359

@@ -726,4 +726,7 @@ end
@test dot(zeros(Int32, 0), Diagonal(zeros(Int, 0)), zeros(Int16, 0)) === 0
end

# issue 37359
@test isa(I \ Diagonal(ones(Integer, n)), Diagonal)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good if the test, in addition, tested the value of the computation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, have updated the tests

@dkarrasch
Copy link
Member

Superseded by #39701.

@dkarrasch dkarrasch closed this May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

\(::UniformScaling, ::Diagonal{T,Array{T,1}}) returns dense Matrix when T is abstract
4 participants