-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make size(F.Q) == size(Matrix(F.Q))? #513
Comments
What about exposing the truncated |
It has been bugging me for a while that
I prefer exposing |
I'm a bit confused what the use of the square julia> Q,R = qr(randn(5,3));
julia> b = randn(5);
julia> R \ (Q'b)
ERROR: DimensionMismatch("B has first dimension 5 but needs 3")
Stacktrace:
[1] trtrs!(::Char, ::Char, ::Char, ::Array{Float64,2}, ::Array{Float64,1}) at /Users/solver/Projects/julia-1.1/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/lapack.jl:3340
[2] ldiv! at /Users/solver/Projects/julia-1.1/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/triangular.jl:583 [inlined]
[3] \ at /Users/solver/Projects/julia-1.1/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/triangular.jl:1854 [inlined]
[4] \(::Array{Float64,2}, ::Array{Float64,1}) at /Users/solver/Projects/julia-1.1/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/generic.jl:903
[5] top-level scope at none:0 |
The way I see it is that a compact representation of norm(A*x - b)^2 = norm(Q*[R; 0]*x - b)^2 = norm([R*x; 0] - Q'*b)^2 =
norm(R*x - Q0'*b)^2 + norm(Q1'*b)^2 = norm(Q1'*b)^2 when |
The issue in the OP seems to be already addressed by JuliaLang/julia#28446. But is it still an option to add a different accessor as suggested by @StefanKarpinski #513 and perhaps "fix" |
+1 for enabling ‘R \ (Q'b)’ or something similar. |
Following up on the discussion in JuliaLang/julia#26392. E.g.
The text was updated successfully, but these errors were encountered: