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

postmultiplication with LQPackedQ broken for some non-square shapes #469

Closed
Sacha0 opened this issue Sep 19, 2017 · 1 comment
Closed

postmultiplication with LQPackedQ broken for some non-square shapes #469

Sacha0 opened this issue Sep 19, 2017 · 1 comment
Labels
bug Something isn't working

Comments

@Sacha0
Copy link
Member

Sacha0 commented Sep 19, 2017

julia> F = lqfact(randn(3, 4));

julia> iL, iQ = F[:L], F[:Q];

julia> iL * iQ
ERROR: DimensionMismatch("for a right-sided multiplication, the second dimension of C, 4, must equal the first dimension of A, 3")
Stacktrace:
 [1] ormlq!(::Char, ::Char, ::Array{Float64,2}, ::Array{Float64,1}, ::Array{Float64,2}) at ./linalg/lapack.jl:2609
 [2] *(::Array{Float64,2}, ::Base.LinAlg.LQPackedQ{Float64,Array{Float64,2}}) at ./linalg/lq.jl:169

julia> size(iL), size(iQ)
((3, 3), (3, 4))

In this multiplication context, iQ behaves like its square form whereas it should behave like its thin form. (size reports the shape of iQ's thin form.) (Edit: On further investigation, not quite. The multiplication method this call initially hits correctly zero-pads iL to shape (3, 4), but ormlq! then applies incorrect shape checks?) Best!

@andreasnoack
Copy link
Member

Should be fixed by JuliaLang/julia#23803

@KristofferC KristofferC transferred this issue from JuliaLang/julia Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants