-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Loosen signature in triangular solver from Strided- to AbstractMatrix. #16205
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
Conversation
end | ||
end | ||
(*)(A::AbstractTriangular, D::Diagonal) = | ||
error("this method should never get called. Please make a bug report.") |
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.
would it be better to define a general purpose fallback here?
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 was necessary to avoid an ambiguity warning but with #16125 it's not necessary anymore. I'm working on an updated version.
Just rebased this PR. The test time for the |
I found it. It was caused by the removal of the I think I'll try to figure out how often we are calling |
5054941
to
b3f7c89
Compare
end | ||
end | ||
|
||
for mat in (:AbstractVector, AbstractMatrix) |
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.
why is only one of these quoted?
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.
I didn't notice that. It doesn't give an error inside @eval
.
Remove many unnecessary type parameters. Fixes #16196
b3f7c89
to
48719c5
Compare
Ha. Compare https://travis-ci.org/JuliaLang/julia/jobs/131233006#L1653 to https://travis-ci.org/JuliaLang/julia/jobs/131231896#L1654 From 1045 to 487 seconds just by avoiding calls to |
end | ||
end | ||
(*)(A::AbstractTriangular, D::Diagonal) = error("this method should never be reached") | ||
(*)(D::Diagonal, A::AbstractTriangular) = error("this method should never be reached") |
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.
are these only necessary to resolve ambiguity?
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.
Yes.
Remove many unnecessary type parameters. Fixes #16196