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

Add a warning about inadvertent Diagonal(::Matrix) #46864

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

mcabbott
Copy link
Contributor

Someone was surprised that Diagonal(sum(rand(5,5), dims=2)) makes a 1×1 matrix. I thought perhaps the docstring ought to mention this.

@brenhinkeller brenhinkeller added docs This change adds or pertains to documentation linear algebra Linear algebra labels Nov 17, 2022
@brenhinkeller
Copy link
Contributor

Do you know what the CI failures are? Seems good to go otherwise?

@brenhinkeller
Copy link
Contributor

The remaining failures seem totally unrelated, so I think we're good here

@brenhinkeller brenhinkeller added the merge me PR is reviewed. Merge when all tests are passing label Nov 26, 2022
@dkarrasch dkarrasch merged commit 5da8d5f into JuliaLang:master Nov 30, 2022
@mcabbott mcabbott deleted the patch-1 branch November 30, 2022 13:17
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants