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

adding _small_enough for diagonal so that fill! works #29780

Merged
merged 2 commits into from
Oct 25, 2018

Conversation

mcognetta
Copy link
Contributor

@mcognetta mcognetta commented Oct 23, 2018

_small_enough wasn't defined for Diagonal so fill!(::Diagonal, x) returns a method error even if the diagonal matrix is small enough.

2 small questions: should the fill and fillstored tests be in test/special.jl (instead of bidiag.jl) since that is where they are defined? And should fillstored be exported by LinearAlgebra?

@fredrikekre fredrikekre added linear algebra Linear algebra bugfix This change fixes an existing bug backport pending 1.0 labels Oct 23, 2018
@@ -346,7 +346,7 @@ using LinearAlgebra: fillstored!, UnitLowerTriangular
sparse(rand(3)),
# LowerTriangular(randn(3,3)), # AbstractTriangular fill! deprecated, see below
# UpperTriangular(randn(3,3)) # AbstractTriangular fill! deprecated, see below
]
Diagonal(rand(3))]
Copy link
Member

@fredrikekre fredrikekre Oct 23, 2018

Choose a reason for hiding this comment

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

Maybe just uncomment L345 instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks.

@fredrikekre fredrikekre merged commit ee08fd6 into JuliaLang:master Oct 25, 2018
@mcognetta mcognetta deleted the fill_diagonal branch October 26, 2018 04:11
KristofferC pushed a commit that referenced this pull request Oct 29, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants