Skip to content

Commit fd05fb1

Browse files
version the qr! for sparse matrices
1 parent 4deb42a commit fd05fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595

9696
function do_factorization(alg::QRFactorization, A, b, u)
9797
A = convert(AbstractMatrix, A)
98-
if alg.inplace
98+
if alg.inplace && (!(A isa SparseMatrixCSC) || VERSION >= v"1.8-")
9999
fact = qr!(A, alg.pivot)
100100
else
101101
fact = qr(A) # CUDA.jl does not allow other args!

0 commit comments

Comments
 (0)