Skip to content

Commit

Permalink
Issue #48911: Include original test case mentioned in the issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindh-krishnamoorthy committed May 4, 2023
1 parent e1c5207 commit f6f1720
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stdlib/LinearAlgebra/test/qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,16 @@ end
end

@testset "issue #48911" begin
# testcase in the original issue
# test ldiv!(::QRPivoted, ::AbstractVector)
A = Complex{BigFloat}[1+im 1-im]
b = Complex{BigFloat}[3+im]
x = A\b
AF = Complex{Float64}[1+im 1-im]
bf = Complex{Float64}[3+im]
xf = AF\bf
@test x xf

# test ldiv!(::QRPivoted, ::AbstractVector)
A = Complex{BigFloat}[1+im 2-2im 3+3im; 4-4im 5+5im 6-6im]
b = Complex{BigFloat}[1+im; 0]
Expand Down

0 comments on commit f6f1720

Please sign in to comment.