-
-
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
Possible faster matrix sqrt for upper triangular matrices #31007
Comments
I wonder what the difference is from inference’s perspective, and whether it could be fixed there? |
Since the |
OK, I'll make a PR with this change. |
Replacing Val(::Bool) in an argument list with an explicit if makes the call type stable. The issue was discussed in JuliaLang#31007.
Superseded by #31100 |
Replacing Val(::Bool) in an argument list with an explicit if makes the call type stable. The issue was discussed in JuliaLang#31007.
Replacing Val(::Bool) in an argument list with an explicit if makes the call type stable. The issue was discussed in #31007.
I've noticed that a small change in
sqrt(A::UpperTriangular)
julia/stdlib/LinearAlgebra/src/triangular.jl
Line 2383 in a0bb006
sqrt(A,Val(realmatrix))
withand I see a significant speedup. Full test code:
And my results (Julia 1.1, Core i7 4800MQ),
julia -O3
:What do you think about it? This is not really about type stability of matrix
sqrt
(discussed in #4006, #24296).The text was updated successfully, but these errors were encountered: