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

tighten signature of (complex mat) x (real vec) #33843

Merged
merged 1 commit into from
Nov 14, 2019
Merged

tighten signature of (complex mat) x (real vec) #33843

merged 1 commit into from
Nov 14, 2019

Conversation

dkarrasch
Copy link
Member

@dkarrasch dkarrasch commented Nov 14, 2019

Closes JuliaLang/LinearAlgebra.jl#655 (again).

Indeed, in #33743 I relaxed the signature by too much. Now, it is consistent with the corresponding mat-mat-mul function (as modified in #33229), that reinterpret the complex matrix as real. Now, if alpha or beta are not real (as was the case in the failing tests), some other mul! method is the first to be called, which decides on whether to use BLAS or not.

I found a similar issue with the complexMatrix * transpose(realMatrix) function. I went by the assumption that all this reinterpretation stuff makes sense only if for the reinterpreted real matrices BLAS gets called. So I added code that would check whether this is the case, and otherwise fall back to generic mul. This specializes again a change in #33229. I think the reinterpret should make sense even if the generic mul gets called.

@dkarrasch
Copy link
Member Author

I'm a bit confused by the test failure on macos. It says "time-out", but if I read this correctly, then the addmul tests finished (they seem to be the last ones that finished before time out), and everything else should not be touched by the changes here. I'll try again...

@dkarrasch dkarrasch closed this Nov 14, 2019
@dkarrasch dkarrasch reopened this Nov 14, 2019
@dkarrasch
Copy link
Member Author

This should go wherever #33743 goes (in terms of potential backport etc)!

@dkarrasch dkarrasch added bugfix This change fixes an existing bug linear algebra Linear algebra labels Nov 14, 2019
@JeffBezanson JeffBezanson merged commit 833b11a into JuliaLang:master Nov 14, 2019
@dkarrasch dkarrasch deleted the fixcomplexmatvecmul branch November 15, 2019 08:11
KristofferC pushed a commit that referenced this pull request Nov 15, 2019
@KristofferC KristofferC mentioned this pull request Nov 15, 2019
19 tasks
KristofferC pushed a commit that referenced this pull request Nov 29, 2019
@KristofferC KristofferC mentioned this pull request Nov 29, 2019
18 tasks
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.

CI errors on master in LinearAlgebra.mul!
3 participants