-
-
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
Fix \ and .'\ for Symmetric and Hermitian sparse matrices. #19242
Conversation
@@ -670,3 +671,19 @@ let m = 400, n = 500 | |||
@test s.is_super == 0 | |||
@test F\b ≈ ones(m + n) | |||
end | |||
|
|||
# Test that \ and '\ and .'\ work for Symmetric and Hertian. This is just |
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.
Hermitian misspelled here
@@ -670,3 +671,19 @@ let m = 400, n = 500 | |||
@test s.is_super == 0 | |||
@test F\b ≈ ones(m + n) | |||
end | |||
|
|||
# Test that \ and '\ and .'\ work for Symmetric and Hertian. This is just | |||
# a dispatch excercise so it doesn't matter that the complex matrix have |
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.
exercise
646fe45
to
4a2e134
Compare
@@ -57,6 +57,10 @@ for f in (:A_ldiv_B!, :Ac_ldiv_B!, :At_ldiv_B!) | |||
$f(A, copy!(Y, B)) | |||
end | |||
|
|||
# fallback methods for transposed solves | |||
At_ldiv_B{T<:Real}(F::Factorization{T}, B) = Ac_ldiv_B(F, B) |
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.
This appears to be the cause of ambiguity errors
What's the status on this? |
4a2e134
to
484aee4
Compare
There was an ambiguity. I've resolved it so the PR should be ready when the tests complete. |
484aee4
to
d433e6f
Compare
There was actually another problem. |
Undeprecate conj for sparse matrices.
d433e6f
to
3df361b
Compare
(cherry picked from commit d9d0fad)
…#19242) Undeprecate conj for sparse matrices.
Apparently, we were not testing
\
forSymmetric
andHermitian
sparse matrices. We also didn't have a fallback method forA.'\b
. See also JuliaLang/LinearAlgebra.jl#384