Skip to content

Commit

Permalink
Integration fix for #48911: Permutation is taken care by ldiv!(QRPivo…
Browse files Browse the repository at this point in the history
…ted, ...)
  • Loading branch information
aravindh-krishnamoorthy committed May 2, 2023
1 parent 40e7f38 commit b48c014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ ldiv!(A::QRPivoted{T,<:StridedMatrix}, B::AbstractVector{T}) where {T<:BlasFloat
vec(ldiv!(A, reshape(B, length(B), 1)))
ldiv!(A::QRPivoted{T,<:StridedMatrix}, B::AbstractMatrix{T}) where {T<:BlasFloat} =
ldiv!(A, B, min(size(A)...)*eps(real(float(one(eltype(B))))))[1]

function _wide_qr_ldiv!(A::QR{T}, B::AbstractMatrix{T}) where T
m, n = size(A)
minmn = min(m,n)
Expand Down Expand Up @@ -614,7 +615,6 @@ function _wide_qr_ldiv!(A::QR{T}, B::AbstractMatrix{T}) where T
end
end
end
B[A.p,:] = B[1:n,:]
return B
end

Expand Down

0 comments on commit b48c014

Please sign in to comment.