From b48c0147de9f3aeb081b17b082f6e1f7a53999d3 Mon Sep 17 00:00:00 2001 From: Aravindh Krishnamoorthy Date: Tue, 2 May 2023 15:41:14 +0200 Subject: [PATCH] Integration fix for #48911: Permutation is taken care by ldiv!(QRPivoted, ...) --- stdlib/LinearAlgebra/src/qr.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/LinearAlgebra/src/qr.jl b/stdlib/LinearAlgebra/src/qr.jl index 6fe50acb305e8..dca2534cb3b4c 100644 --- a/stdlib/LinearAlgebra/src/qr.jl +++ b/stdlib/LinearAlgebra/src/qr.jl @@ -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) @@ -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