-
-
Notifications
You must be signed in to change notification settings - Fork 54
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 type promote in case b is complex #399
Conversation
Codecov Report
@@ Coverage Diff @@
## main #399 +/- ##
==========================================
+ Coverage 69.72% 69.92% +0.20%
==========================================
Files 26 26
Lines 1965 1965
==========================================
+ Hits 1370 1374 +4
+ Misses 595 591 -4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
add a test? |
Sure! Just to clarify, do you want to test the "complex" part or the "tol-type-mismatch"? If the former, I was thinking of adding a complex |
It would be nice to catch both things, but at least showing the behavior on complex should be done since that's a non-trivial interaction I didn't immediately guess. |
Tests are failing |
All tests are passing except for MKL and SVD. From the error messages, I think the MKL wrapper doesn't support complex systems, but not sure what's going on with SVD. |
Yes the MKL_jll direct wrapper doesn't support complex, so mark that as broken. SVD, mark as broken and open a Base Julialang issue. |
oh actually that seems like an issue with the cache construction, so ArrayInterface should get some updates and tests for SVD initialization on complex |
https://github.com/JuliaArrays/ArrayInterface.jl/blob/master/src/ArrayInterface.jl#L669 The SVD instance creation is only based on A, so the arrays are all complex typed. Should we just always convert b? I think that in order to hit the fast LAPACK functions it's required that b is complex as well and converts internally? |
Thanks for the fixes. Quick question: Should we fix formatting here or in a separate PR (formatter complains about ext/LinearSolveEnzymeExt.jl, ext/LinearSolveIterativeSolversExt.jl, src/appleaccelerate.jl, src/default.jl, src/mkl.jl, test/basictests.jl, test/default_algs.jl, test/enzyme.jl, test/resolve.jl). |
in a separate PR. Right now we're checking if the new format is sufficient and will format all of SciML at the same time. |
Fixes #398