Skip to content

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