Skip to content

Fix AbstractQ conversion to different-typed matrix #32979

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

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

mfherbst
Copy link
Contributor

@mfherbst mfherbst commented Aug 20, 2019

In current julia master

T = Float32
Matrix{T}(qr(randn(real(T), 3, 3)).Q)

succeeds, but an AbstractQ to Matrix conversion also changing type, e.g.

T = ComplexF32
Matrix{T}(qr(randn(real(T), 3, 3)).Q)

fails.

This PR adds an extra explicit conversion of the matrix type to avoid this problem.

@kshyatt kshyatt added the linear algebra Linear algebra label Aug 20, 2019
@andreasnoack andreasnoack merged commit fcf9063 into JuliaLang:master Aug 20, 2019
@mfherbst mfherbst deleted the qr_matrix_conversion branch August 20, 2019 20:25
KristofferC pushed a commit that referenced this pull request Aug 25, 2019
@KristofferC KristofferC mentioned this pull request Aug 25, 2019
36 tasks
KristofferC pushed a commit that referenced this pull request Aug 26, 2019
This was referenced Aug 26, 2019
@KristofferC KristofferC mentioned this pull request Dec 3, 2019
56 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants